| Total Complexity | 7 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class GetMileageByProject extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane\OpenApiRuntime\Client\Psr7Endpoint |
||
| 13 | { |
||
| 14 | protected $projectId; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param int $projectId Id of the project |
||
| 18 | */ |
||
| 19 | public function __construct(int $projectId) |
||
| 20 | { |
||
| 21 | $this->projectId = $projectId; |
||
| 22 | } |
||
| 23 | |||
| 24 | use \Jane\OpenApiRuntime\Client\Psr7EndpointTrait; |
||
| 25 | |||
| 26 | public function getMethod(): string |
||
| 27 | { |
||
| 28 | return 'GET'; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getUri(): string |
||
| 32 | { |
||
| 33 | return str_replace(['{projectId}'], [$this->projectId], '/v1/mileage/project/{projectId}'); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array |
||
| 37 | { |
||
| 38 | return [[], null]; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getExtraHeaders(): array |
||
| 42 | { |
||
| 43 | return ['Accept' => ['application/json']]; |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritdoc} |
||
| 48 | * |
||
| 49 | * @return \ConnectHolland\TimechimpBundle\Api\Model\Mileage[]|null |
||
| 50 | */ |
||
| 51 | protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType) |
||
| 55 | } |
||
| 56 | } |
||
| 57 | } |
||
| 58 |