src/Option.php
public function getHtml(array $attributes = []): string
    {
        return self::buildTag('option', $this->getLabel(),
            array_merge(
                [
                    'value'    => $this->getValue(),
                    'selected' => $this->isSelected,
                ],
                $attributes)
        );
    }
public function getHtml(array $attributes = []): string
    {
        return self::buildTag('option', $this->getLabel(),
            array_merge(
                [
                    'value'    => $this->getValue(),
                    'selected' => $this->isSelected,
                ],
                $attributes)
        );
    }
public function getHtml ( array $ attributes = [ ] ) : string { return self :: buildTag ( 'option' , $ this -> getLabel ( ) , array_merge ( [ 'value' => $ this -> getValue ( ) , 'selected' => $ this -> isSelected , ] , $ attributes ) ) ; }
Returns the option html.

@since 1.0.0

@param array $attributes The attributes.

@return string The option html.
Returns the option html .