public function onlyDocs($flag) { if ($flag) { $this->setIncludeDocs(true); } $this->onlyDocs = $flag; return $this; }