private function configureUsingFluentDefinition(): void
    {
        $data = ExpressionParser::parse($this->signature);

        parent::__construct($data['name']);

        foreach ($data['arguments'] as $argument) {
            $this->getDefinition()->addArgument($argument);
        }

        foreach ($data['options'] as $option) {
            $this->getDefinition()->addOption($option);
        }
    }
private function configureUsingFluentDefinition(): void
    {
        $data = ExpressionParser::parse($this->signature);

        parent::__construct($data['name']);

        foreach ($data['arguments'] as $argument) {
            $this->getDefinition()->addArgument($argument);
        }

        foreach ($data['options'] as $option) {
            $this->getDefinition()->addOption($option);
        }
    }
private function configureUsingFluentDefinition ( ) : void { $ data = ExpressionParser :: parse ( $ this -> signature ) ; parent :: __construct ( $ data [ 'name' ] ) ; foreach ( $ data [ 'arguments' ] as $ argument ) { $ this -> getDefinition ( ) -> addArgument ( $ argument ) ; } foreach ( $ data [ 'options' ] as $ option ) { $ this -> getDefinition ( ) -> addOption ( $ option ) ; } }
Configure the console command using a fluent definition.

@throws \Symfony\Component\Console\Exception\LogicException
@throws \Viserio\Component\Contract\Console\Exception\InvalidCommandExpression

@return void
Configure the console command using a fluent definition .