No Description

StaticCall.php 858B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace PhpParser\Node\Expr;
  3. use PhpParser\Node;
  4. use PhpParser\Node\Expr;
  5. /**
  6. * @property Node\Name|Expr $class Class name
  7. * @property string|Expr $name Method name
  8. * @property Node\Arg[] $args Arguments
  9. */
  10. class StaticCall extends Expr
  11. {
  12. /**
  13. * Constructs a static method call node.
  14. *
  15. * @param Node\Name|Expr $class Class name
  16. * @param string|Expr $name Method name
  17. * @param Node\Arg[] $args Arguments
  18. * @param array $attributes Additional attributes
  19. */
  20. public function __construct($class, $name, array $args = array(), array $attributes = array()) {
  21. parent::__construct(
  22. array(
  23. 'class' => $class,
  24. 'name' => $name,
  25. 'args' => $args
  26. ),
  27. $attributes
  28. );
  29. }
  30. }