Author: Elliot Levin (elliotlevin@hotmail.com)
Inheritance: extends StaticClassExpression
Exemplo n.º 1
0
 public function visitStaticMethodCall(O\StaticMethodCallExpression $expression)
 {
     $classExpression = $expression->getClass();
     $this->walk($classExpression);
     $this->walk($expression->getName());
     $this->walkAll($expression->getArguments());
     $class = $this->validateStaticClassName($classExpression, 'static method call');
     $this->addTypeOperation($expression, $this->typeSystem->getObjectType($class)->getStaticMethod($expression));
 }
Exemplo n.º 2
0
 public function getStaticMethod(O\StaticMethodCallExpression $expression)
 {
     if ($method = $this->getMethodByName($expression->getName(), true)) {
         return $method;
     }
     return parent::getStaticMethod($expression);
 }