Total Complexity | 5 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | final class CallContext implements CallContextInterface |
||
8 | { |
||
9 | use AttributedTrait; |
||
10 | |||
11 | /** |
||
12 | * @param array<non-empty-string, mixed> $attributes |
||
|
|||
13 | */ |
||
14 | 217 | public function __construct( |
|
15 | private TargetInterface $target, |
||
16 | private array $arguments = [], |
||
17 | array $attributes = [], |
||
18 | ) { |
||
19 | 217 | $this->attributes = $attributes; |
|
20 | } |
||
21 | |||
22 | 206 | public function getTarget(): TargetInterface |
|
25 | } |
||
26 | |||
27 | 205 | public function getArguments(): array |
|
28 | { |
||
29 | 205 | return $this->arguments; |
|
30 | } |
||
31 | |||
32 | 1 | public function withTarget(TargetInterface $target): static |
|
37 | } |
||
38 | |||
39 | 160 | public function withArguments(array $arguments): static |
|
44 | } |
||
45 | } |
||
46 |