| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ParameterKeyErrorHandler implements ErrorHandlerInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * The IoC Container. |
||
| 13 | * |
||
| 14 | * @var Container |
||
| 15 | */ |
||
| 16 | protected $app; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Constructor to setup the interpreter. |
||
| 20 | * |
||
| 21 | * @param Container $app |
||
| 22 | */ |
||
| 23 | 4 | public function __construct(Container $app) |
|
| 26 | 4 | } |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Function to take the response object and return |
||
| 30 | * an array of errors. |
||
| 31 | * |
||
| 32 | * @param Response $response - response object |
||
| 33 | * |
||
| 34 | * @return array - array of string error messages |
||
| 35 | * |
||
| 36 | * @throws \InvalidArgumentException |
||
| 37 | */ |
||
| 38 | 4 | public function parseErrors(Response $response) |
|
| 50 |