src/Select.php
public function addOption(OptionInterface $option): void
    {
        $option->setSelected($option->getValue() === $this->value);

        if ($option->getValue() === '') {
            $this->hasEmptyOption = true;
        }

        $this->options[] = $option;
    }
public function addOption(OptionInterface $option): void
    {
        $option->setSelected($option->getValue() === $this->value);

        if ($option->getValue() === '') {
            $this->hasEmptyOption = true;
        }

        $this->options[] = $option;
    }
public function addOption ( OptionInterface $ option ) : void { $ option -> setSelected ( $ option -> getValue ( ) === $ this -> value ) ; if ( $ option -> getValue ( ) === '' ) { $ this -> hasEmptyOption = true ; } $ this -> options [ ] = $ option ; }
Adds on option.

@since 1.0.0

@param OptionInterface $option The option.
Adds on option .