コード例 #1
0
 /**
  * Adds a single reflected Argument to the Method Descriptor.
  *
  * @param ArgumentReflector $argument
  * @param MethodDescriptor  $descriptor
  *
  * @return void
  */
 protected function addArgument($argument, $descriptor)
 {
     $params = $descriptor->getTags()->get('param', array());
     if (!$this->argumentAssembler->getBuilder()) {
         $this->argumentAssembler->setBuilder($this->builder);
     }
     $argumentDescriptor = $this->argumentAssembler->create($argument, $params);
     $descriptor->addArgument($argumentDescriptor->getName(), $argumentDescriptor);
 }