Skip to content

Commit

Permalink
Add missing methods to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Jun 27, 2024
1 parent 26f97cd commit f1e4a6f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Client/Endpoint/ProductEndpointInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,28 @@
namespace Setono\PeakWMS\Client\Endpoint;

use Setono\PeakWMS\DataTransferObject\Collection;
use Setono\PeakWMS\DataTransferObject\PaginatedCollection;
use Setono\PeakWMS\DataTransferObject\Product\Product;
use Setono\PeakWMS\Request\Query\Product\PageQuery;

/**
* @extends EndpointInterface<Product>
* @extends CreatableEndpointInterface<Product>
*/
interface ProductEndpointInterface extends EndpointInterface, CreatableEndpointInterface, DeletableEndpointInterface
{
/**
* @return PaginatedCollection<Product>
*/
public function getPage(PageQuery $query): PaginatedCollection;

/**
* @return Collection<Product>
*/
public function getByProductId(string $productId): Collection;

/**
* @return iterable<Product>
*/
public function iterate(PageQuery $query = null): iterable;
}

0 comments on commit f1e4a6f

Please sign in to comment.