public function splitDefinition(InputDefinition $definition)
    {
        /** @var InputDefinition[] $ret */
        $ret = array(
            new InputDefinition(),
            new InputDefinition()
        );

        foreach ($definition->getArguments() as $arg) {
            $ret[0]->addArgument($arg);
            $ret[1]->addArgument($arg);
        }
        foreach ($definition->getOptions() as $opt) {
            $ret[$this->isHiddenOption($opt) ? 1 : 0]->addOption($opt);
        }
        return $ret;
    }
public function splitDefinition(InputDefinition $definition)
    {
        /** @var InputDefinition[] $ret */
        $ret = array(
            new InputDefinition(),
            new InputDefinition()
        );

        foreach ($definition->getArguments() as $arg) {
            $ret[0]->addArgument($arg);
            $ret[1]->addArgument($arg);
        }
        foreach ($definition->getOptions() as $opt) {
            $ret[$this->isHiddenOption($opt) ? 1 : 0]->addOption($opt);
        }
        return $ret;
    }
public function splitDefinition ( InputDefinition $ definition ) { /** @var InputDefinition[] $ret */ $ ret = array ( new InputDefinition ( ) , new InputDefinition ( ) ) ; foreach ( $ definition -> getArguments ( ) as $ arg ) { $ ret [ 0 ] -> addArgument ( $ arg ) ; $ ret [ 1 ] -> addArgument ( $ arg ) ; } foreach ( $ definition -> getOptions ( ) as $ opt ) { $ ret [ $ this -> isHiddenOption ( $ opt ) ? 1 : 0 ] -> addOption ( $ opt ) ; } return $ ret ; }
Splits the definition in an internal and public one, the latter representing whatever is shown to the user,
the former representing the options that are hidden.

@param \Symfony\Component\Console\Input\InputDefinition $definition
@return InputDefinition[]
Splits the definition in an internal and public one the latter representing whatever is shown to the user the former representing the options that are hidden .