private function adaptOption(Option $option)
    {
        $mode = null;

        if ($option->isMultiValued()) {
            $mode |= InputOption::VALUE_IS_ARRAY;
        }

        if ($option->isValueOptional()) {
            $mode |= InputOption::VALUE_OPTIONAL;
        }

        if ($option->isValueRequired()) {
            $mode |= InputOption::VALUE_REQUIRED;
        }

        return new InputOption($option->getLongName(), $option->getShortName(), $mode, $option->getDescription(), $option->getDefaultValue());
    }
private function adaptOption(Option $option)
    {
        $mode = null;

        if ($option->isMultiValued()) {
            $mode |= InputOption::VALUE_IS_ARRAY;
        }

        if ($option->isValueOptional()) {
            $mode |= InputOption::VALUE_OPTIONAL;
        }

        if ($option->isValueRequired()) {
            $mode |= InputOption::VALUE_REQUIRED;
        }

        return new InputOption($option->getLongName(), $option->getShortName(), $mode, $option->getDescription(), $option->getDefaultValue());
    }
private function adaptOption ( Option $ option ) { $ mode = null ; if ( $ option -> isMultiValued ( ) ) { $ mode |= InputOption :: VALUE_IS_ARRAY ; } if ( $ option -> isValueOptional ( ) ) { $ mode |= InputOption :: VALUE_OPTIONAL ; } if ( $ option -> isValueRequired ( ) ) { $ mode |= InputOption :: VALUE_REQUIRED ; } return new InputOption ( $ option -> getLongName ( ) , $ option -> getShortName ( ) , $ mode , $ option -> getDescription ( ) , $ option -> getDefaultValue ( ) ) ; }
Creates an input option for the given option.

@param Option $option The option.

@return InputOption The created input option.
Creates an input option for the given option .