Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function create(array $dimensions, $lang) |
||
36 | { |
||
37 | Assert::notEmpty($dimensions); |
||
38 | Assert::stringNotEmpty($lang); |
||
39 | |||
40 | $response = $this->httpPost('/api/patterns/create', ['dimensions' => $dimensions, 'lang' => $lang]); |
||
41 | |||
42 | return $this->hydrateResponse($response, Created::class); |
||
43 | } |
||
44 | } |
||
45 |