1 | <?php |
||
26 | class Update extends ModelCreate |
||
27 | { |
||
28 | /** |
||
29 | * These are the default body params that we're accepting. You can lock down specific Client attributes this way. |
||
30 | * |
||
31 | * @return array |
||
32 | */ |
||
33 | protected function validBodyParams(): array |
||
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | */ |
||
43 | public function statusCodeSuccess(): int |
||
47 | |||
48 | /** |
||
49 | * @inheritdoc |
||
50 | */ |
||
51 | protected function attributeValuesFromBody(): array |
||
57 | |||
58 | /** |
||
59 | * Normalize settings from body |
||
60 | * |
||
61 | * @return array |
||
62 | */ |
||
63 | protected function environmentValuesFromBody(): array |
||
76 | |||
77 | |||
78 | /** |
||
79 | * @param string|array $value |
||
80 | * @return array |
||
81 | */ |
||
82 | protected function normalizeEnvironmentValue($value = []): array |
||
90 | |||
91 | /** |
||
92 | * @param Model $model |
||
93 | * @return bool |
||
94 | * @throws \Throwable |
||
95 | */ |
||
96 | protected function performAction(Model $model): bool |
||
108 | |||
109 | /** |
||
110 | * @inheritdoc |
||
111 | * @return Settings |
||
112 | */ |
||
113 | protected function newModel(array $config = []): Model |
||
117 | } |
||
118 |