SebastianBergmann\PHPLOC\CLI\Command::configure PHP Method

configure() protected method

Configures the current command.
protected configure ( )
    protected function configure()
    {
        $this->setName('phploc')->setDefinition([new InputArgument('values', InputArgument::IS_ARRAY)])->addOption('names', null, InputOption::VALUE_REQUIRED, 'A comma-separated list of file names to check', ['*.php'])->addOption('names-exclude', null, InputOption::VALUE_REQUIRED, 'A comma-separated list of file names to exclude', [])->addOption('count-tests', null, InputOption::VALUE_NONE, 'Count PHPUnit test case classes and test methods')->addOption('git-repository', null, InputOption::VALUE_REQUIRED, 'Collect metrics over the history of a Git repository')->addOption('exclude', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Exclude a directory from code analysis')->addOption('log-csv', null, InputOption::VALUE_REQUIRED, 'Write result in CSV format to file')->addOption('log-xml', null, InputOption::VALUE_REQUIRED, 'Write result in XML format to file')->addOption('progress', null, InputOption::VALUE_NONE, 'Show progress bar');
    }

Usage Example

Example #1
0
 protected function configure()
 {
     parent::configure();
     $this->setName("tool:phploc")->setDescription('quickly measuring the size and analyzing the structure of a PHP project');
 }