Автор: Elliot Levin (elliotlevin@hotmail.com)
Наследование: extends StaticClassExpression
Пример #1
0
 public function visitStaticField(O\StaticFieldExpression $expression)
 {
     $classExpression = $expression->getClass();
     $this->walk($classExpression);
     $this->walk($expression->getName());
     $class = $this->validateStaticClassName($classExpression, 'static field');
     $this->addTypeOperation($expression, $this->typeSystem->getObjectType($class)->getStaticField($expression));
 }
Пример #2
0
 public function getStaticField(O\StaticFieldExpression $expression)
 {
     if ($field = $this->getFieldByName($expression->getName(), true)) {
         return $field;
     }
     return parent::getStaticField($expression);
 }