Total Complexity | 6 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | final class Context |
||
19 | { |
||
20 | public function __construct( |
||
21 | private string $rootPath, |
||
22 | private string $rootType, |
||
23 | private bool $strictTypes, |
||
24 | private ExecutionContextInterface $execution, |
||
25 | ) { |
||
26 | } |
||
27 | |||
28 | public function getRootPath(): string |
||
29 | { |
||
30 | return $this->rootPath; |
||
31 | } |
||
32 | |||
33 | public function getExecution(): ExecutionContextInterface |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return class-string|string |
||
|
|||
40 | */ |
||
41 | public function getRootType(): string |
||
44 | } |
||
45 | |||
46 | public function withExecution(ExecutionContextInterface $execution): self |
||
47 | { |
||
48 | $new = clone $this; |
||
49 | $new->execution = $execution; |
||
50 | |||
51 | return $new; |
||
52 | } |
||
53 | |||
54 | public function isStrictTypes(): bool |
||
57 | } |
||
58 | } |
||
59 |