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()); } }
public function defineConstant($name, Zval $value) { $this->constants->register($name, $value->getZval()); }