Total Complexity | 7 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
12 | class GetMileageByDateRange extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane\OpenApiRuntime\Client\Psr7Endpoint |
||
13 | { |
||
14 | protected $startDate; |
||
15 | protected $endDate; |
||
16 | |||
17 | /** |
||
18 | * @param string $startDate Start date as string in format: YYYY-MM-DD |
||
19 | * @param string $endDate End date as string in format: YYYY-MM-DD |
||
20 | */ |
||
21 | public function __construct(string $startDate, string $endDate) |
||
22 | { |
||
23 | $this->startDate = $startDate; |
||
24 | $this->endDate = $endDate; |
||
25 | } |
||
26 | |||
27 | use \Jane\OpenApiRuntime\Client\Psr7EndpointTrait; |
||
28 | |||
29 | public function getMethod(): string |
||
30 | { |
||
31 | return 'GET'; |
||
32 | } |
||
33 | |||
34 | public function getUri(): string |
||
37 | } |
||
38 | |||
39 | public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array |
||
40 | { |
||
41 | return [[], null]; |
||
42 | } |
||
43 | |||
44 | public function getExtraHeaders(): array |
||
45 | { |
||
46 | return ['Accept' => ['application/json']]; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | * |
||
52 | * @return \ConnectHolland\TimechimpBundle\Api\Model\Mileage[]|null |
||
53 | */ |
||
54 | protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType) |
||
58 | } |
||
59 | } |
||
60 | } |
||
61 |