src/Util/Factory/FactoryTrait.php 1 location
|
@@ 61-69 (lines=9) @@
|
| 58 |
|
/** |
| 59 |
|
* @see FactoryInterface::getParam |
| 60 |
|
*/ |
| 61 |
|
public function getParam($name) |
| 62 |
|
{ |
| 63 |
|
if (!array_key_exists($name, $this->params)) |
| 64 |
|
{ |
| 65 |
|
throw new IllegalFieldException("Factory does not posses param [$name]."); |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
return $this->invoke($this->params[$name]); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
/** |
| 72 |
|
* @see FactoryInterface::hasParam |
src/Util/Factory/SimpleFactoryTrait.php 1 location
|
@@ 61-69 (lines=9) @@
|
| 58 |
|
/** |
| 59 |
|
* @see SimpleFactoryInterface::getParam |
| 60 |
|
*/ |
| 61 |
|
public function getParam($name) |
| 62 |
|
{ |
| 63 |
|
if (!array_key_exists($name, $this->params)) |
| 64 |
|
{ |
| 65 |
|
throw new IllegalFieldException("Factory does not posses param [$name]."); |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
return $this->invoke($this->params[$name]); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
/** |
| 72 |
|
* @see SimpleFactoryInterface::hasParam |