<?php
namespace Nibiru\Form;
use Nibiru\Adapter;

/**
 * Created by PhpStorm.
 * User: mithril
 * Date: 26.01.18
 * Time: 21:42
 */

class TypeOption extends FormAttributes implements IForm
{
    private $_attributes = array(
        self::FORM_VALUE                => '',
        self::FORM_ATTRIBUTE_ID         => '',
        self::FORM_ATTRIBUTE_CLASS      => '',
        self::FORM_ATTRIBUTE_SELECTED   => '',
        self::FORM_ATTRIBUTE_CONTEXT    => ''
    );

    public function loadElement( $attributes )
    {
        self::__construct( $this->_attributes );
        $this->_setElement();
        $this->_setAttributes( $attributes );
        return $this->getElement();
    }

    /**
     * @param mixed $element
     */
    private function _setElement( )
    {
        $this->_element = '<option value="VALUE" ID CLASS SELECTED>CONTEXT</option>' . "\n";
    }
}