private function adaptArgument(Argument $argument)
    {
        $mode = null;

        if ($argument->isMultiValued()) {
            $mode |= InputArgument::IS_ARRAY;
        }

        if ($argument->isOptional()) {
            $mode |= InputArgument::OPTIONAL;
        }

        if ($argument->isRequired()) {
            $mode |= InputArgument::REQUIRED;
        }

        return new InputArgument($argument->getName(), $mode, $argument->getDescription(), $argument->getDefaultValue());
    }
private function adaptArgument(Argument $argument)
    {
        $mode = null;

        if ($argument->isMultiValued()) {
            $mode |= InputArgument::IS_ARRAY;
        }

        if ($argument->isOptional()) {
            $mode |= InputArgument::OPTIONAL;
        }

        if ($argument->isRequired()) {
            $mode |= InputArgument::REQUIRED;
        }

        return new InputArgument($argument->getName(), $mode, $argument->getDescription(), $argument->getDefaultValue());
    }
private function adaptArgument ( Argument $ argument ) { $ mode = null ; if ( $ argument -> isMultiValued ( ) ) { $ mode |= InputArgument :: IS_ARRAY ; } if ( $ argument -> isOptional ( ) ) { $ mode |= InputArgument :: OPTIONAL ; } if ( $ argument -> isRequired ( ) ) { $ mode |= InputArgument :: REQUIRED ; } return new InputArgument ( $ argument -> getName ( ) , $ mode , $ argument -> getDescription ( ) , $ argument -> getDefaultValue ( ) ) ; }
Creates an input argument for the given argument.

@param Argument $argument The argument.

@return InputArgument The created input argument.
Creates an input argument for the given argument .