1 | <?php |
||
27 | final class InitialisedContextServiceEnvironment implements ContextServiceEnvironment |
||
28 | { |
||
29 | /** |
||
30 | * @var Suite |
||
31 | */ |
||
32 | private $suite; |
||
33 | |||
34 | /** |
||
35 | * @var Context[] |
||
36 | */ |
||
37 | private $contexts = []; |
||
38 | |||
39 | /** |
||
40 | * @param Suite $suite |
||
41 | */ |
||
42 | public function __construct(Suite $suite) |
||
46 | |||
47 | /** |
||
48 | * @param Context $context |
||
49 | */ |
||
50 | public function registerContext(Context $context): void |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function getSuite(): Suite |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function bindCallee(Callee $callee): callable |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | public function hasContexts(): bool |
||
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | */ |
||
88 | public function getContextClasses(): array |
||
92 | |||
93 | /** |
||
94 | * {@inheritdoc} |
||
95 | */ |
||
96 | public function hasContextClass($class): bool |
||
100 | |||
101 | /** |
||
102 | * @param string $class |
||
103 | * |
||
104 | * @return Context |
||
105 | * |
||
106 | * @throws ContextNotFoundException |
||
107 | */ |
||
108 | private function getContext(string $class): Context |
||
119 | } |
||
120 |