Мелкофиксы по кодстайлу

This commit is contained in:
2021-12-12 14:50:29 +08:00
parent 464a8f0706
commit c7d07a18f1
21 changed files with 178 additions and 75 deletions

View File

@@ -34,8 +34,8 @@ final class Receipt extends Entity
protected Client $client;
/**
* @todo вынести в трейт?
* @var Company Продавец
* @todo вынести в трейт
*/
protected Company $company;
@@ -55,8 +55,8 @@ final class Receipt extends Entity
protected Items $items;
/**
* @todo вынести в трейт?
* @var Payments Коллекция оплат
* @todo вынести в трейт
*/
protected Payments $payments;
@@ -71,8 +71,8 @@ final class Receipt extends Entity
protected float $total = 0;
/**
* @todo вынести в трейт?
* @var string|null ФИО кассира
* @todo вынести в трейт
*/
protected ?string $cashier = null;
@@ -204,10 +204,9 @@ final class Receipt extends Entity
*
* @param Items $items
* @return $this
* @throws EmptyItemsException
* @throws InvalidEntityInCollectionException
* @throws Exception
* @todo исключение при пустой коллекции
* @throws EmptyItemsException
*/
public function setItems(Items $items): self
{