Cli::getArguments PHP Method

getArguments() public method

Get the arguments
public getArguments ( ) : array
return array
    public function getArguments()
    {
        return $this->arguments;
    }

Usage Example

コード例 #1
0
ファイル: cli.php プロジェクト: ParisPar/learning-phalcon
                                }
                            }
                        }
                        $util->consoleLog(str_pad($theActionName, $charCountActionName + 5) . "" . $theActionDescription, 'green');
                    }
                }
            }
            closedir($handle);
        }
    }
    public function getArguments()
    {
        return $this->arguments;
    }
    public function getConsole()
    {
        return $this->console;
    }
}
try {
    $cli = new Cli($argv);
    $arguments = $cli->getArguments();
    if (0 === count($arguments)) {
        $cli->readTasks();
    } else {
        $console = $cli->getConsole();
        $console->handle($arguments);
    }
} catch (\Phalcon\Exception $e) {
    echo $e->getMessage();
}