| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | 17 | public function __construct($serviceName, $method) |
|
| 13 | { |
||
| 14 | 17 | if (empty($serviceName) || empty($method)) { |
|
| 15 | 1 | throw new \InvalidArgumentException("Controller service name and method cannot be empty"); |
|
| 16 | } |
||
| 17 | |||
| 18 | 16 | $this->serviceName = $serviceName; |
|
| 19 | 16 | $this->method = $method; |
|
| 20 | 16 | } |
|
| 21 | |||
| 32 |