Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
23 | 1 | public function create(Customer $customer): self |
|
24 | { |
||
25 | 1 | $customer->setRequired([ |
|
26 | 1 | 'first_name', |
|
27 | 'last_name', |
||
28 | 'email', |
||
29 | ]); |
||
30 | |||
31 | // Set HTTP params |
||
32 | 1 | $this->type = 'post'; |
|
33 | 1 | $this->endpoint = '/customers'; |
|
34 | 1 | $this->params = $customer; |
|
35 | 1 | $this->response = Customer::class; |
|
|
|||
36 | |||
37 | 1 | return $this; |
|
38 | } |
||
79 |