Command\ModelGeneratorCommand::configure PHP Method

configure() public method

public configure ( )
    public function configure()
    {
        $defaultNamespace = trim(AutoloadNamespaces::getModelNamespace(), '\\');
        $this->setName('ouzo:model_generator')->addArgument('table', InputArgument::REQUIRED, 'Table name.')->addOption('class', 'c', InputOption::VALUE_REQUIRED, 'Class name. If not specified class name is generated based on table name.')->addOption('file', 'f', InputOption::VALUE_REQUIRED, 'Class file path. If not specified namespace and class name is used.')->addOption('namespace', 's', InputOption::VALUE_REQUIRED, 'Class namespace (e.g \'Model\\MyModel\'). Hint: Remember to escape backslash (\\\\)!', $defaultNamespace)->addOption('remove-prefix', 'p', InputOption::VALUE_REQUIRED, 'Remove prefix from table name when generating class name.', 't')->addOption('output-only', 'o', InputOption::VALUE_NONE, 'Only displaying generated model class.')->addOption('short-arrays', 'a', InputOption::VALUE_NONE, 'Generate model class with short arrays. (PHP 5.4).');
    }