public function __construct($name, array $subNodes = array(), array $attributes = array()) { parent::__construct($attributes); $this->name = $name; $this->stmts = isset($subNodes['stmts']) ? $subNodes['stmts'] : array(); }