PhpParser\Node\Stmt\Declare_::__construct PHP Method

__construct() public method

Constructs a declare node.
public __construct ( array $declares, array $stmts = null, array $attributes = [] )
$declares array List of declares
$stmts array Statements
$attributes array Additional attributes
    public function __construct(array $declares, array $stmts = null, array $attributes = array())
    {
        parent::__construct($attributes);
        $this->declares = $declares;
        $this->stmts = $stmts;
    }