Total Complexity | 9 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
5 | class DeleteProductUnit extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane\OpenApiRuntime\Client\Psr7Endpoint |
||
6 | { |
||
7 | protected $unitId; |
||
8 | /** |
||
9 | * Deletes the `ProductUnit` object. |
||
10 | * |
||
11 | * @param int $unitId The units id |
||
12 | */ |
||
13 | public function __construct(int $unitId) |
||
14 | { |
||
15 | $this->unitId = $unitId; |
||
16 | } |
||
17 | use \Jane\OpenApiRuntime\Client\Psr7EndpointTrait; |
||
18 | public function getMethod() : string |
||
19 | { |
||
20 | return 'DELETE'; |
||
21 | } |
||
22 | public function getUri() : string |
||
25 | } |
||
26 | public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array |
||
27 | { |
||
28 | return array(array(), null); |
||
29 | } |
||
30 | public function getExtraHeaders() : array |
||
33 | } |
||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | * |
||
37 | * @throws \Starweb\Api\Generated\Exception\DeleteProductUnitNotFoundException |
||
38 | * |
||
39 | * @return null |
||
40 | */ |
||
41 | protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) |
||
50 | } |