Yield.php 777 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * @property null|PHPParser_Node_Expr $value Value expression
  4. * @property null|PHPParser_Node_Expr $key Key expression
  5. */
  6. class PHPParser_Node_Expr_Yield extends PHPParser_Node_Expr
  7. {
  8. /**
  9. * Constructs a yield expression node.
  10. *
  11. * @param null|PHPParser_Node_Expr $value ´ Value expression
  12. * @param null|PHPParser_Node_Expr $key Key expression
  13. * @param array $attributes Additional attributes
  14. */
  15. public function __construct(PHPParser_Node_Expr $value = null, PHPParser_Node_Expr $key = null, array $attributes = array()) {
  16. parent::__construct(
  17. array(
  18. 'key' => $key,
  19. 'value' => $value,
  20. ),
  21. $attributes
  22. );
  23. }
  24. }