getName() public method

public getName ( ) : Expression
return Expression
Esempio 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));
 }
Esempio n. 2
0
 public function getStaticMethod(O\StaticMethodCallExpression $expression)
 {
     if ($method = $this->getMethodByName($expression->getName(), true)) {
         return $method;
     }
     return parent::getStaticMethod($expression);
 }