Pagekit\Application\Console\Command::argument PHP 메소드

argument() 공개 메소드

Get the value of a command argument.
public argument ( string $key = null ) : string | array
$key string
리턴 string | array
    public function argument($key = null)
    {
        if (is_null($key)) {
            return $this->input->getArguments();
        }
        return $this->input->getArgument($key);
    }