| 1 | <?php |
||
| 7 | |||
| 8 | trait SchemesPart { |
||
| 9 | |||
| 10 | private $schemes; |
||
| 11 | 12 | ||
| 12 | 12 | private function parseSchemes(Map $data) { |
|
| 13 | 12 | $this->schemes = $data->get('schemes', new ArrayList()); |
|
| 14 | } |
||
| 15 | |||
| 16 | private function mergeSchemes(static $model, $overwrite = false) { |
||
|
|
|||
| 17 | $this->schemes->addAll($model->schemes); |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Return schemes |
||
| 22 | * |
||
| 23 | * @return ArrayList |
||
| 24 | */ |
||
| 25 | public function getSchemes() { |
||
| 30 |