예제 #1
0
 /**
  * Add a method to the collection
  *
  * Will set the class headers to the method headers first
  *
  * @param Method $method
  */
 public function addMethod(Method $method)
 {
     $method->addHeaders($this->getHeaders());
     $this->methods[] = $method->toArray();
 }