No Description

DeclareDeclare.php 652B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace PhpParser\Node\Stmt;
  3. use PhpParser\Node;
  4. /**
  5. * @property string $key Key
  6. * @property Node\Expr $value Value
  7. */
  8. class DeclareDeclare extends Node\Stmt
  9. {
  10. /**
  11. * Constructs a declare key=>value pair node.
  12. *
  13. * @param string $key Key
  14. * @param Node\Expr $value Value
  15. * @param array $attributes Additional attributes
  16. */
  17. public function __construct($key, Node\Expr $value, array $attributes = array()) {
  18. parent::__construct(
  19. array(
  20. 'key' => $key,
  21. 'value' => $value,
  22. ),
  23. $attributes
  24. );
  25. }
  26. }