| Total Complexity | 8 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class DeleteProject extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane\OpenApiRuntime\Client\Psr7Endpoint |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @param array $queryParameters { |
||
| 16 | * |
||
| 17 | * @var int $id |
||
| 18 | * } |
||
| 19 | */ |
||
| 20 | public function __construct(array $queryParameters = []) |
||
| 21 | { |
||
| 22 | $this->queryParameters = $queryParameters; |
||
| 23 | } |
||
| 24 | |||
| 25 | use \Jane\OpenApiRuntime\Client\Psr7EndpointTrait; |
||
| 26 | |||
| 27 | public function getMethod(): string |
||
| 28 | { |
||
| 29 | return 'DELETE'; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getUri(): string |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array |
||
| 38 | { |
||
| 39 | return [[], null]; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getExtraHeaders(): array |
||
| 45 | } |
||
| 46 | |||
| 47 | protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver |
||
| 48 | { |
||
| 49 | $optionsResolver = parent::getQueryOptionsResolver(); |
||
| 50 | $optionsResolver->setDefined(['id']); |
||
| 51 | $optionsResolver->setRequired(['id']); |
||
| 52 | $optionsResolver->setDefaults([]); |
||
| 53 | $optionsResolver->setAllowedTypes('id', ['int']); |
||
| 54 | |||
| 55 | return $optionsResolver; |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritdoc} |
||
| 60 | * |
||
| 61 | * @return null |
||
| 62 | */ |
||
| 63 | protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType) |
||
| 67 | } |
||
| 68 | } |
||
| 69 | } |
||
| 70 |