Exemple #1
0
 /**
  * Consolidate the methods of the prototype.
  *
  * The method creates a single array from the prototype methods and those of its parents.
  *
  * @return callable[]
  */
 private function consolidate_methods()
 {
     $methods = $this->methods;
     if ($this->parent) {
         $methods += $this->parent->get_consolidated_methods();
     }
     return $methods;
 }