| 1 | <?php |
||
| 7 | trait FromArray |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param array $array |
||
| 11 | * @return self |
||
| 12 | * @throws MethodDoesNotExistsException |
||
| 13 | */ |
||
| 14 | 17 | public static function fromArray(array $array) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $property |
||
| 28 | * @return string |
||
| 29 | * @throws MethodDoesNotExistsException |
||
| 30 | */ |
||
| 31 | 17 | private function setMethod(string $property): string |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $string |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 17 | private function snakeCaseToCamelCase(string $string): string |
|
| 50 | } |
||
| 51 |