| 1 | <?php |
||
| 7 | |||
| 8 | trait SchemaPart { |
||
| 9 | |||
| 10 | /** @var Schema */ |
||
| 11 | private $schema; |
||
| 12 | 8 | ||
| 13 | 8 | private function parseSchema(Map $data) { |
|
| 14 | 8 | $this->schema = new Schema($data->get('schema')); |
|
| 15 | } |
||
| 16 | |||
| 17 | private function mergeSchema(static $model, $overwrite = false) { |
||
|
|
|||
| 18 | $this->schema->merge($model->schema, $overwrite); |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * |
||
| 23 | * @return Schema |
||
| 24 | */ |
||
| 29 |