Beispiel #1
0
 public function __construct($name, NodeInterface $parent = null, array $values = array())
 {
     $values = array_unique($values);
     if (empty($values)) {
         throw new \InvalidArgumentException('$values must contain at least one element.');
     }
     parent::__construct($name, $parent);
     $this->values = $values;
 }
Beispiel #2
0
 public function __construct($name, NodeInterface $parent = null, $min = null, $max = null)
 {
     parent::__construct($name, $parent);
     $this->min = $min;
     $this->max = $max;
 }