| Conditions | 1 |
| Paths | 1 |
| Total Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 2 | protected function notifyApproved($requested, $provided, Request $request, $params) |
|
| 29 | { |
||
| 30 | 2 | $this->negotiated = new SplObjectStorage(); |
|
| 31 | 2 | $this->negotiated[$request] = $this->getCallback($provided); |
|
| 32 | 2 | } |
|
| 33 | 1 | protected function notifyDeclined($requested, $provided, Request $request, $params) |
|
| 45 |
Instead of super-globals, we recommend to explicitly inject the dependencies of your class. This makes your code less dependent on global state and it becomes generally more testable: