53 lines
1.1 KiB
PHP
53 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace KupShop\ComponentsBundle\Contracts;
|
|
|
|
use KupShop\ComponentsBundle\Dto\OrderItem;
|
|
use KupShop\KupShopBundle\Util\Price\TotalPrice;
|
|
|
|
interface OrderInterface
|
|
{
|
|
public function getObject(): object;
|
|
|
|
public function getId(): int;
|
|
|
|
public function getUrl(): string;
|
|
|
|
public function getOrderNo(): string|int;
|
|
|
|
public function getDateCreated(): ?\DateTimeInterface;
|
|
|
|
public function getStatus(): int;
|
|
|
|
public function getStatusText(): string;
|
|
|
|
public function getTotalPrice(): TotalPrice;
|
|
|
|
public function isEditable(): int;
|
|
|
|
public function getEditUrl(): string;
|
|
|
|
public function getSource(): string;
|
|
|
|
public function hasProducts(): bool;
|
|
|
|
/**
|
|
* @return array<OrderItem>
|
|
*/
|
|
public function getItems(): array;
|
|
|
|
public function getItemsTable(): string;
|
|
|
|
public function getCurrency(): string;
|
|
|
|
public function getDeliveryUserInfo(): ?UserInfoInterface;
|
|
|
|
public function getInvoiceUserInfo(): ?UserInfoInterface;
|
|
|
|
public function getHistory(): array;
|
|
|
|
public function getTitle(): string;
|
|
}
|