Exemplo n.º 1
0
 /**
  * Create a new State object.
  * 
  * @param array $array An optional array of Variable objects.
  * @throws InvalidArgumentException If an object of $array is not a Variable object.
  */
 public function __construct(array $array = array())
 {
     parent::__construct();
     foreach ($array as $a) {
         $this->checkType($a);
         $this->setVariable($a);
     }
 }
Exemplo n.º 2
0
 /**
  * Create a new Container object.
  *
  * @param array $array An array of values to be set in the container.
  */
 public function __construct(array $array = array())
 {
     parent::__construct($array);
 }