31 lines
419 B
PHP
31 lines
419 B
PHP
<?php
|
|
|
|
/* Init Classes */
|
|
|
|
class GetOpts
|
|
{
|
|
private $longOpts = [];
|
|
|
|
function __construct()
|
|
{
|
|
|
|
}
|
|
|
|
public function setLongOpt(string $opt, array $callback)
|
|
{
|
|
$this->longOpts[$opt] = $callback;
|
|
}
|
|
}
|
|
|
|
class CheckDomain
|
|
{
|
|
public function host(string $domain)
|
|
{
|
|
echo $domain;
|
|
}
|
|
}
|
|
|
|
CheckDomain::host('lhprojects.net');
|
|
/* Get command line options */
|
|
$args = new GetOpts;
|