Cleanup old objects and add serializer
This commit is contained in:
@ -6,19 +6,6 @@ namespace Ardent\GrocyApi\Objects;
|
||||
|
||||
class ApiListTransformer
|
||||
{
|
||||
private static function list(string $type): ?string
|
||||
{
|
||||
return match ($type) {
|
||||
Category::getType() => Category::class,
|
||||
SingleArticle::getType() => SingleArticle::class,
|
||||
SingleArticleDetails::getType() => SingleArticleDetails::class,
|
||||
Order::getType() => Order::class,
|
||||
OrderLine::getType() => OrderLine::class,
|
||||
OrderArticle::getType() => OrderArticle::class,
|
||||
Delivery::getType() => Delivery::class,
|
||||
default => null,
|
||||
};
|
||||
}
|
||||
|
||||
public static function getObjects(array $items): array
|
||||
{
|
||||
|
Reference in New Issue
Block a user