private function buildOption(Option $option): string
    {

        // Select unselected options when the options value is in selects value array
        if (!$option->getSelected() && in_array($option->getValue(), $this->value)) {
            $option->isSelected();
        }

        return $option->build();
    }
private function buildOption(Option $option): string
    {

        // Select unselected options when the options value is in selects value array
        if (!$option->getSelected() && in_array($option->getValue(), $this->value)) {
            $option->isSelected();
        }

        return $option->build();
    }
private function buildOption ( Option $ option ) : string { // Select unselected options when the options value is in selects value array if ( ! $ option -> getSelected ( ) && in_array ( $ option -> getValue ( ) , $ this -> value ) ) { $ option -> isSelected ( ) ; } return $ option -> build ( ) ; }
Builds otion element

@param Option $option

@return string
Builds otion element