Пример #1
0
 public function setProperty($name, Zval $value)
 {
     if (isset($this->properties[$name])) {
         $this->properties[$name]->assignZval($value->getZval());
     } else {
         $this->properties[$name] = Zval::ptrFactory($value->getZval());
     }
 }
Пример #2
0
 public function defineConstant($name, Zval $value)
 {
     $this->constants->register($name, $value->getZval());
 }