MrClay\Cli\Arg::__call PHP Method

__call() public method

Note: magic methods declared in class PHPDOC
public __call ( string $name, array $args = [] ) : Arg
$name string
$args array
return Arg
    public function __call($name, array $args = array())
    {
        if (array_key_exists($name, $this->spec)) {
            $this->spec[$name] = true;
            if ($name === 'assertFile' || $name === 'assertDir') {
                $this->spec['mustHaveValue'] = true;
            }
        } else {
            throw new BadMethodCallException('Method does not exist');
        }
        return $this;
    }