| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class CallableItem implements AutowireItemInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var callable |
||
| 13 | */ |
||
| 14 | private $callable; |
||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | private $args; |
||
| 19 | |||
| 20 | 3 | public function __construct(callable $callable, array $args) |
|
| 21 | { |
||
| 22 | 3 | $this->callable = $callable; |
|
| 23 | 3 | $this->args = $args; |
|
| 24 | 3 | } |
|
| 25 | |||
| 26 | 1 | public function serialize(): string |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $serialized |
||
| 33 | */ |
||
| 34 | 1 | public function unserialize($serialized): void |
|
| 38 | 1 | } |
|
| 39 | |||
| 40 | 2 | public function getCallable(): callable |
|
| 43 | } |
||
| 44 | |||
| 45 | 2 | public function getArgs(): array |
|
| 50 |