protected function setVar(common\_var $var) { if (!$var->getInstance() instanceof instance\_Array) { $this->getWindow()->throwException('Can call key only on array'); } $this->var = $var; }
protected function buildVariable(common\_var $var) { $isset = $this->callFunction('isset', $this->tokenToInstance('php-boolean'), array($var)); $new = $this->createInstanciate($var->getInstance()); $this->add($this->createCondition($this->createNot($isset), $this->createAssign($var, $new))); }