| 1 | <?php |
||
| 18 | trait PopulateTrait |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * These are the default body params that we're accepting. You can lock down specific fact attributes this way. |
||
| 22 | * |
||
| 23 | * @return array |
||
| 24 | */ |
||
| 25 | abstract protected function validBodyParams(): array; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param BaseObject $object |
||
| 29 | * @return BaseObject |
||
| 30 | */ |
||
| 31 | protected function populate(BaseObject $object): BaseObject |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return array |
||
| 47 | */ |
||
| 48 | protected function attributeValuesFromBody(): array |
||
| 64 | } |
||
| 65 |