|
@@ 49-56 (lines=8) @@
|
| 46 |
|
public function toMethodMetadata(MethodMetadata $methodMetadata) |
| 47 |
|
{ |
| 48 |
|
// Check for argument name input and validity |
| 49 |
|
if (!$this->checkArgumentExists($this->argumentName, $methodMetadata)) { |
| 50 |
|
throw new \InvalidArgumentException( |
| 51 |
|
'@InjectArgument argument "' |
| 52 |
|
. $methodMetadata->classMetadata->className . '::' |
| 53 |
|
. $methodMetadata->name . ' ' |
| 54 |
|
. $this->argumentName . '" does not exists' |
| 55 |
|
); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
// Check for type input |
| 59 |
|
if ($this->argumentType === null) { |
|
@@ 59-66 (lines=8) @@
|
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
// Check for type input |
| 59 |
|
if ($this->argumentType === null) { |
| 60 |
|
throw new \InvalidArgumentException( |
| 61 |
|
'@InjectArgument argument "' |
| 62 |
|
. $methodMetadata->classMetadata->className . '::' |
| 63 |
|
. $methodMetadata->name . ' ' |
| 64 |
|
. $this->argumentName . '" type not specified' |
| 65 |
|
); |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
// Store dependency with fully qualified type name |
| 69 |
|
$methodMetadata->dependencies[$this->argumentName] = $this->buildFullClassName( |