public function __construct() { $this->addedNodes = new \SplObjectStorage(); $this->removedNodes = new \SplObjectStorage(); parent::__construct(); }