public function setRootDocument($rootDocument) { $this->rootDocument = $rootDocument; return $this; }