Beispiel #1
0
 /**
  * Instantiate object definition
  *
  * @param string $name
  * @param string $value
  * @throws \InvalidArgumentException
  */
 public function __construct($name, $value)
 {
     if (class_exists($value) === false) {
         throw new \InvalidArgumentException('Object definition value must be a name of existing class');
     }
     parent::__construct($name, $value);
 }
Beispiel #2
0
 public function __construct($func, $vars, $obj = null, $args = array())
 {
     parent::__construct($func, $vars);
     $this->obj = $obj;
     $this->args = $args;
 }