31 lines
707 B
PHP
31 lines
707 B
PHP
<?php
|
|
|
|
namespace KupShop\OrderingBundle\Entity\Purchase;
|
|
|
|
use KupShop\KupShopBundle\Util\Price\Price;
|
|
|
|
interface PurchaseItemInterface
|
|
{
|
|
public function getName();
|
|
|
|
public function getPrice(): Price;
|
|
|
|
public function setPrice(Price $price): self;
|
|
|
|
public function getPriceWithVat(): \Decimal;
|
|
|
|
public function getPriceWithoutVat(): \Decimal;
|
|
|
|
public function getPriceWithAdditionalItems(): Price;
|
|
|
|
public function getIdDiscount();
|
|
|
|
public function addAdditionalItem(PurchaseItemInterface $purchaseItem): PurchaseItemInterface;
|
|
|
|
public function getAdditionalItems(): array;
|
|
|
|
public function getNote(): array;
|
|
|
|
public function addNote(string $key, $value): self;
|
|
}
|