Webmozart\Console\Api\Config\OptionCommandConfig::__construct PHP Method

__construct() public method

Creates a new configuration.
public __construct ( string $name = null, string $shortName = null, CommandConfig $parentConfig = null, ApplicationConfig $applicationConfig = null )
$name string The long option name of the command.
$shortName string The short option name of the command.
$parentConfig CommandConfig The parent configuration.
$applicationConfig ApplicationConfig The application configuration.
    public function __construct($name = null, $shortName = null, CommandConfig $parentConfig = null, ApplicationConfig $applicationConfig = null)
    {
        parent::__construct($name, $parentConfig, $applicationConfig);
        $this->setShortName($shortName);
    }