Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  * @throws WrongAnnotationConstructorException
  * @throws MethodDefinitionNotFoundException
  * @throws ParameterDefinitionAlreadyExistsException
  * @throws MethodDefinitionAlreadyExistsException
  */
 public function resolveMethod(DefinitionAnalyzer $analyzer, ClassDefinition $classDefinition, \ReflectionMethod $reflectionMethod)
 {
     // Get parameter key
     $key = array_keys($this->value)[0];
     $classDefinition->setupMethod($reflectionMethod->getName())->defineParameter($key)->defineDependency(new ClassReference($this->value[$key]))->end();
 }