Daniel Schreiber 9db0e3237c
[php-flight] fix: always set http status in streaming response and use http status from spec (#18604)
This additionally adds streaming stubs for all methods (rather err on the side of too much stubs).
2024-05-08 14:26:41 +08:00

143 lines
3.3 KiB
PHP

<?php
/**
* OpenAPI Petstore
* PHP version 8.x
*
* @package OpenAPIServer
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
namespace OpenAPIServer\Api;
abstract class AbstractStoreApi
{
/**
* Operation deleteOrder
*
* Path: `/store/order/{orderId}`
*
* Delete purchase order by ID
*
* @param string $orderId ID of the order that needs to be deleted (required)
*
* @return void
*/
public function deleteOrder(string $orderId): void
{
throw new \Exception('Not implemented');
}
/**
* Operation deleteOrder (stream)
*
* Path: `/store/order/{orderId}`
*
* Delete purchase order by ID
*
* @param string $orderId ID of the order that needs to be deleted (required)
*
*/
public function deleteOrderStream(string $orderId): void
{
throw new \Exception('Not implemented');
}
/**
* Operation getInventory
*
* Path: `/store/inventory`
*
* Returns pet inventories by status
*
*
* @return void
*/
public function getInventory(): void
{
throw new \Exception('Not implemented');
}
/**
* Operation getInventory (stream)
*
* Path: `/store/inventory`
*
* Returns pet inventories by status
*
*
*/
public function getInventoryStream(): void
{
throw new \Exception('Not implemented');
}
/**
* Operation getOrderById
*
* Path: `/store/order/{orderId}`
*
* Find purchase order by ID
*
* @param int $orderId ID of pet that needs to be fetched (required)
*
* @return \OpenAPIServer\Model\Order|null
*/
public function getOrderById(int $orderId): \OpenAPIServer\Model\Order|null
{
throw new \Exception('Not implemented');
}
/**
* Operation getOrderById (stream)
*
* Path: `/store/order/{orderId}`
*
* Find purchase order by ID
*
* @param int $orderId ID of pet that needs to be fetched (required)
*
*/
public function getOrderByIdStream(int $orderId): void
{
throw new \Exception('Not implemented');
}
/**
* Operation placeOrder
*
* Path: `/store/order`
*
* Place an order for a pet
*
* @param \OpenAPIServer\Model\Order $order order placed for purchasing the pet (required)
*
* @return \OpenAPIServer\Model\Order|null
*/
public function placeOrder(\OpenAPIServer\Model\Order $order): \OpenAPIServer\Model\Order|null
{
throw new \Exception('Not implemented');
}
/**
* Operation placeOrder (stream)
*
* Path: `/store/order`
*
* Place an order for a pet
*
* @param \OpenAPIServer\Model\Order $order order placed for purchasing the pet (required)
*
*/
public function placeOrderStream(\OpenAPIServer\Model\Order $order): void
{
throw new \Exception('Not implemented');
}
}