| Total Complexity | 2 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | trait ContextFacadeTrait |
||
| 21 | { |
||
| 22 | use NameResolverFacadeTrait; |
||
| 23 | use SchemaFacadeTrait { |
||
| 24 | setSchema as private _setSchema; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var ExecutionContext |
||
| 29 | */ |
||
| 30 | protected ExecutionContext $context; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param Schema $schema |
||
| 34 | * @return $this |
||
| 35 | */ |
||
| 36 | public function setSchema(Schema $schema): self |
||
| 37 | { |
||
| 38 | $this->_setSchema($schema); |
||
| 39 | |||
| 40 | $this->context->setSchema($schema); |
||
| 41 | |||
| 42 | return $this; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return void |
||
| 47 | * @throws \Throwable |
||
| 48 | */ |
||
| 49 | private function bootContextFacadeTrait(): void |
||
| 55 | } |
||
| 56 | } |
||
| 57 |