Файл: vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Return_.php
Строк: 24
<?php declare(strict_types=1);
namespace PhpParserNodeStmt;
use PhpParserNode;
class Return_ extends NodeStmt
{
/** @var null|NodeExpr Expression */
public $expr;
/**
* Constructs a return node.
*
* @param null|NodeExpr $expr Expression
* @param array $attributes Additional attributes
*/
public function __construct(NodeExpr $expr = null, array $attributes = []) {
$this->attributes = $attributes;
$this->expr = $expr;
}
public function getSubNodeNames() : array {
return ['expr'];
}
public function getType() : string {
return 'Stmt_Return';
}
}