コード例 #1
0
ファイル: ClassInstance.php プロジェクト: asgrim/PHPPHP
 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
ファイル: ClassEntry.php プロジェクト: asgrim/PHPPHP
 public function defineConstant($name, Zval $value)
 {
     $this->constants->register($name, $value->getZval());
 }