2014-02-06 14:44:16 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace PhpParser\Node\Stmt;
|
|
|
|
|
|
|
|
use PhpParser\Node;
|
2016-11-23 22:58:18 +01:00
|
|
|
|
2014-02-06 14:44:16 +01:00
|
|
|
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
|
2015-12-07 12:12:00 +01:00
|
|
|
* @param Node[]|null $stmts Statements
|
2014-02-06 14:44:16 +01:00
|
|
|
* @param array $attributes Additional attributes
|
|
|
|
*/
|
2015-12-07 12:12:00 +01:00
|
|
|
public function __construct(array $declares, array $stmts = null, array $attributes = array()) {
|
2015-05-02 22:17:34 +02:00
|
|
|
parent::__construct($attributes);
|
2015-02-28 18:44:28 +01:00
|
|
|
$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
|
|
|
}
|