mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-03 18:07:58 +01:00
29 lines
695 B
PHP
29 lines
695 B
PHP
<?php
|
|
|
|
namespace PhpParser\Node\Expr;
|
|
|
|
use PhpParser\Node\Expr;
|
|
|
|
/**
|
|
* @property null|Expr $value Value expression
|
|
* @property null|Expr $key Key expression
|
|
*/
|
|
class Yield_ extends Expr
|
|
{
|
|
/**
|
|
* Constructs a yield expression node.
|
|
*
|
|
* @param null|Expr $value Value expression
|
|
* @param null|Expr $key Key expression
|
|
* @param array $attributes Additional attributes
|
|
*/
|
|
public function __construct(Expr $value = null, Expr $key = null, array $attributes = array()) {
|
|
parent::__construct(
|
|
array(
|
|
'key' => $key,
|
|
'value' => $value,
|
|
),
|
|
$attributes
|
|
);
|
|
}
|
|
} |