Total Complexity | 4 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | abstract class Context implements ContextInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var Schema |
||
23 | */ |
||
24 | protected Schema $schema; |
||
25 | |||
26 | /** |
||
27 | * @var array|LocalContextInterface[] |
||
28 | */ |
||
29 | protected array $contexts = []; |
||
30 | |||
31 | /** |
||
32 | * Context constructor. |
||
33 | * |
||
34 | * @param Schema $schema |
||
35 | */ |
||
36 | public function __construct(Schema $schema) |
||
37 | { |
||
38 | $this->schema = $schema; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param Schema $schema |
||
43 | * @return void |
||
44 | */ |
||
45 | public function setSchema(Schema $schema): void |
||
46 | { |
||
47 | $this->schema = $schema; |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return Schema |
||
52 | */ |
||
53 | public function getSchema(): Schema |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * @param LocalContextInterface $context |
||
60 | * @return void |
||
61 | */ |
||
62 | public function add(LocalContextInterface $context): void |
||
65 | } |
||
66 | } |
||
67 |