@@ -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 | { |
@@ -58,7 +58,7 @@ |
||
58 | 58 | * accessed as an array. |
59 | 59 | */ |
60 | 60 | class FactoryListContainer |
61 | - implements FactoryList |
|
61 | + implements FactoryList |
|
62 | 62 | { |
63 | 63 | // satisfies WriteProtectedEntity interface |
64 | 64 | use WriteProtectTab; |
@@ -50,7 +50,7 @@ |
||
50 | 50 | * the interface that all factory list containers must implement |
51 | 51 | */ |
52 | 52 | interface FactoryList |
53 | - extends ArrayAccess, WriteProtectedEntity |
|
53 | + extends ArrayAccess, WriteProtectedEntity |
|
54 | 54 | { |
55 | 55 | /** |
56 | 56 | * return the full list of factories as a real PHP array |
@@ -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 |
@@ -55,8 +55,8 @@ |
||
55 | 55 | * read-only |
56 | 56 | */ |
57 | 57 | class ContainerIsReadOnly |
58 | - extends ParameterisedException |
|
59 | - implements DIContainersException, HttpRuntimeErrorException |
|
58 | + extends ParameterisedException |
|
59 | + implements DIContainersException, HttpRuntimeErrorException |
|
60 | 60 | { |
61 | 61 | // adds 'getHttpStatus()' that returns a HTTP 500 status value object |
62 | 62 | use UnexpectedErrorStatusProvider; |
@@ -53,8 +53,8 @@ |
||
53 | 53 | * exception thrown when we're asked for a factory we do not know about |
54 | 54 | */ |
55 | 55 | class NoSuchFactory |
56 | - extends ParameterisedException |
|
57 | - implements DIContainersException, HttpRuntimeErrorException |
|
56 | + extends ParameterisedException |
|
57 | + implements DIContainersException, HttpRuntimeErrorException |
|
58 | 58 | { |
59 | 59 | // adds 'getHttpStatus()' that returns a HTTP 500 status value object |
60 | 60 | use UnexpectedErrorStatusProvider; |
@@ -54,8 +54,8 @@ |
||
54 | 54 | * acceptable factory |
55 | 55 | */ |
56 | 56 | class NotAFactory |
57 | - extends ParameterisedException |
|
58 | - implements DIContainersException, HttpRuntimeErrorException |
|
57 | + extends ParameterisedException |
|
58 | + implements DIContainersException, HttpRuntimeErrorException |
|
59 | 59 | { |
60 | 60 | // adds 'getHttpStatus()' that returns a HTTP 500 status value object |
61 | 61 | use UnexpectedErrorStatusProvider; |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * list of factories |
52 | 52 | */ |
53 | 53 | class NotAListOfFactories |
54 | - extends UnsupportedType |
|
55 | - implements DIContainersException |
|
54 | + extends UnsupportedType |
|
55 | + implements DIContainersException |
|
56 | 56 | { |
57 | 57 | } |