/** * {@inheritdoc} */ public function replaceComments($search, $replace) { parent::replaceComments($search, $replace); foreach ($this->parameters as $parameter) { $parameter->setType(str_replace($search, $replace, $parameter->getType())); } return $this; }
/** * Remove all properties, methods and constants. */ public function flushSchema() { $this->properties = []; $this->constants = []; $this->methods = []; $this->parent = []; $this->interfaces = []; parent::flushSchema(); }