Пример #1
0
 /**
  * @param Func $function
  * A function to add to the code base
  *
  * @return void
  */
 public function addFunction(Func $function)
 {
     // Add it to the map of functions
     $this->fqsen_func_map[$function->getFQSEN()] = $function;
     // Add it to the set of functions and methods
     $this->func_and_method_set->attach($function);
 }
Пример #2
0
 /**
  * Add a type name to the list of types
  *
  * @return void
  */
 public function addType(Type $type)
 {
     $this->type_set->attach($type);
 }