Ejemplo n.º 1
0
 public function addOption(AbstractOption $option)
 {
     $this->options[] = $option;
     if ($this->select) {
         $option->setSelect($this->getSelect());
     }
 }
Ejemplo n.º 2
0
 /**
  * @param string $value the value of the option (used for value="$value")
  * @param string $label label of the option (used for <option>$label</option>
  */
 public function __construct($value, $label = null)
 {
     $this->value = $value;
     parent::__construct($label);
 }