public function documentFragment($state = null) { if ($state) { phpQuery::$documents[$this->getDocumentID()]['documentFragment'] = $state; return $this; } return $this->documentFragment; }