| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 40 | 1 | public function pricing(Pricing $pricing): self |
|
| 41 | { |
||
| 42 | 1 | $pricing->setRequired([ |
|
| 43 | 1 | 'quantities' |
|
| 44 | ]); |
||
| 45 | |||
| 46 | // Set HTTP params |
||
| 47 | 1 | $this->type = 'post'; |
|
| 48 | 1 | $this->endpoint = '/availability/instance/' . $this->instance_id . '/pricing'; |
|
| 49 | 1 | $this->params = $pricing; |
|
| 50 | 1 | $this->response = InstancePricing::class; |
|
| 51 | |||
| 52 | 1 | return $this; |
|
| 53 | } |
||
| 56 |