@@ -102,7 +102,7 @@ |
||
| 102 | 102 | * the container to examine |
| 103 | 103 | * @param string $fieldOrVarName |
| 104 | 104 | * what is the name of $container in the calling code? |
| 105 | - * @return void |
|
| 105 | + * @return boolean |
|
| 106 | 106 | */ |
| 107 | 107 | public function to(FactoryList $container, $fieldOrVarName = '$container') |
| 108 | 108 | { |
@@ -55,14 +55,14 @@ |
||
| 55 | 55 | // all of the exceptions that our library can create, and the means |
| 56 | 56 | // to create them |
| 57 | 57 | $ourExceptions = [ |
| 58 | - 'ContainerIsReadOnly::newFromInputParameter' => [ ContainerIsReadOnly::class, 'newFromInputParameter' ], |
|
| 59 | - 'ContainerIsReadOnly::newFromVar' => [ ContainerIsReadOnly::class, 'newFromVar' ], |
|
| 60 | - 'NoSuchFactory::newFromInputParameter' => [ NoSuchFactory::class, 'newFromInputParameter' ], |
|
| 61 | - 'NoSuchFactory::newFromVar' => [ NoSuchFactory::class, 'newFromVar' ], |
|
| 62 | - 'NotAFactory::newFromInputParameter' => [ NotAFactory::class, 'newFromInputParameter' ], |
|
| 63 | - 'NotAFactory::newFromVar' => [ NotAFactory::class, 'newFromVar' ], |
|
| 64 | - 'NotAListOfFactories::newFromInputParameter' => [ NotAListOfFactories:: class, 'newFromInputParameter' ], |
|
| 65 | - 'NotAListOfFactories::newFromVar' => [ NotAListOfFactories:: class, 'newFromVar' ], |
|
| 58 | + 'ContainerIsReadOnly::newFromInputParameter' => [ContainerIsReadOnly::class, 'newFromInputParameter'], |
|
| 59 | + 'ContainerIsReadOnly::newFromVar' => [ContainerIsReadOnly::class, 'newFromVar'], |
|
| 60 | + 'NoSuchFactory::newFromInputParameter' => [NoSuchFactory::class, 'newFromInputParameter'], |
|
| 61 | + 'NoSuchFactory::newFromVar' => [NoSuchFactory::class, 'newFromVar'], |
|
| 62 | + 'NotAFactory::newFromInputParameter' => [NotAFactory::class, 'newFromInputParameter'], |
|
| 63 | + 'NotAFactory::newFromVar' => [NotAFactory::class, 'newFromVar'], |
|
| 64 | + 'NotAListOfFactories::newFromInputParameter' => [NotAListOfFactories:: class, 'newFromInputParameter'], |
|
| 65 | + 'NotAListOfFactories::newFromVar' => [NotAListOfFactories:: class, 'newFromVar'], |
|
| 66 | 66 | ]; |
| 67 | 67 | |
| 68 | 68 | // special case - we have to pass $this into our parent constructor |