public static function create($class_name, $method_name) {
    if (is_string($class_name)) {
      $class_name = NameNode::create($class_name);
    }
    /** @var ClassMethodCallNode $node */
    $node = new static();
    $node->addChild($class_name, 'className');
    $node->addChild(Token::doubleColon());
    $node->addChild(Token::identifier($method_name), 'methodName');
    $node->addChild(Token::openParen(), 'openParen');
    $node->addChild(new CommaListNode(), 'arguments');
    $node->addChild(Token::closeParen(), 'closeParen');
    return $node;
  }
public static function create($class_name, $method_name) {
    if (is_string($class_name)) {
      $class_name = NameNode::create($class_name);
    }
    /** @var ClassMethodCallNode $node */
    $node = new static();
    $node->addChild($class_name, 'className');
    $node->addChild(Token::doubleColon());
    $node->addChild(Token::identifier($method_name), 'methodName');
    $node->addChild(Token::openParen(), 'openParen');
    $node->addChild(new CommaListNode(), 'arguments');
    $node->addChild(Token::closeParen(), 'closeParen');
    return $node;
  }
public static function create ( $ class_name , $ method_name ) { if ( is_string ( $ class_name ) ) { $ class_name = NameNode :: create ( $ class_name ) ; } /** @var ClassMethodCallNode $node */ $ node = new static ( ) ; $ node -> addChild ( $ class_name , 'className' ) ; $ node -> addChild ( Token :: doubleColon ( ) ) ; $ node -> addChild ( Token :: identifier ( $ method_name ) , 'methodName' ) ; $ node -> addChild ( Token :: openParen ( ) , 'openParen' ) ; $ node -> addChild ( new CommaListNode ( ) , 'arguments' ) ; $ node -> addChild ( Token :: closeParen ( ) , 'closeParen' ) ; return $ node ; }
Creates a method call on a class with an empty argument list.

@param Node|string $class_name
The class node which is typically NameNode of class.
@param string $method_name
The name of the called method.

@return static
Creates a method call on a class with an empty argument list .