2014-02-06 14:44:16 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace PhpParser\Node\Stmt;
|
|
|
|
|
|
|
|
use PhpParser\Node;
|
|
|
|
class Declare_ extends Node\Stmt
|
|
|
|
{
|
2015-02-28 18:44:28 +01:00
|
|
|
/** @var DeclareDeclare[] List of declares */
|
|
|
|
public $declares;
|
|
|
|
/** @var Node[] Statements */
|
|
|
|
public $stmts;
|
|
|
|
|
2014-02-06 14:44:16 +01:00
|
|
|
/**
|
|
|
|
* Constructs a declare node.
|
|
|
|
*
|
|
|
|
* @param DeclareDeclare[] $declares List of declares
|
|
|
|
* @param Node[] $stmts Statements
|
|
|
|
* @param array $attributes Additional attributes
|
|
|
|
*/
|
|
|
|
public function __construct(array $declares, array $stmts, array $attributes = array()) {
|
2015-02-28 18:44:28 +01:00
|
|
|
parent::__construct(null, $attributes);
|
|
|
|
$this->declares = $declares;
|
|
|
|
$this->stmts = $stmts;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getSubNodeNames() {
|
|
|
|
return array('declares', 'stmts');
|
2014-02-06 14:44:16 +01:00
|
|
|
}
|
2015-02-28 18:44:28 +01:00
|
|
|
}
|