/** * @param string $name * @param array|null $attributes * @param NodeInterface|null $parent * @param array|null $children */ public function __construct($name, array $attributes = null, NodeInterface $parent = null, array $children = null) { parent::__construct($parent, $children); $this->name = $name; $this->attributes = $attributes ?: []; }