Example #1
0
 /**
  * {@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;
 }
Example #2
0
 /**
  * Remove all properties, methods and constants.
  */
 public function flushSchema()
 {
     $this->properties = [];
     $this->constants = [];
     $this->methods = [];
     $this->parent = [];
     $this->interfaces = [];
     parent::flushSchema();
 }