| 1 | <?php |
||
| 7 | |||
| 8 | trait ResponsesPart { |
||
| 9 | |||
| 10 | /** @var Responses */ |
||
| 11 | private $responses; |
||
| 12 | 12 | ||
| 13 | 12 | private function parseResponses(Map $data) { |
|
| 14 | 12 | $this->responses = new Responses($data->get('responses', new Map())); |
|
| 15 | } |
||
| 16 | |||
| 17 | private function mergeResponses(static $model, $overwrite = false) { |
||
|
|
|||
| 18 | $this->responses->merge($model->responses, $overwrite); |
||
| 19 | } |
||
| 20 | |||
| 21 | 2 | /** |
|
| 22 | 2 | * Return responses |
|
| 23 | * |
||
| 24 | * @return Responses |
||
| 25 | */ |
||
| 26 | public function getResponses() { |
||
| 31 |