Author: Elliot Levin (elliotlevin@hotmail.com)
Inheritance: extends StaticClassExpression
 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));
 }
Exemple #2
0
 public function getStaticMethod(O\StaticMethodCallExpression $expression)
 {
     if ($method = $this->getMethodByName($expression->getName(), true)) {
         return $method;
     }
     return parent::getStaticMethod($expression);
 }