1 | <?php |
||
25 | final class InitialisedContextServiceEnvironment implements ContextServiceEnvironment |
||
26 | { |
||
27 | /** |
||
28 | * @var Suite |
||
29 | */ |
||
30 | private $suite; |
||
31 | |||
32 | /** |
||
33 | * @var Context[] |
||
34 | */ |
||
35 | private $contexts = []; |
||
36 | |||
37 | /** |
||
38 | * @param Suite $suite |
||
39 | */ |
||
40 | public function __construct(Suite $suite) |
||
44 | |||
45 | /** |
||
46 | * @param Context $context |
||
47 | */ |
||
48 | public function registerContext(Context $context) |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function getSuite() |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function bindCallee(Callee $callee) |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | public function hasContexts() |
||
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | public function getContextClasses() |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | public function hasContextClass($class) |
||
98 | |||
99 | /** |
||
100 | * @param string $class |
||
101 | * |
||
102 | * @return Context |
||
103 | * |
||
104 | * @throws ContextNotFoundException |
||
105 | */ |
||
106 | private function getContext($class) |
||
117 | } |
||
118 |