Skip to content

ревью#1

Open
ivapbox wants to merge 2 commits intomainfrom
review
Open

ревью#1
ivapbox wants to merge 2 commits intomainfrom
review

Conversation

@ivapbox
Copy link
Copy Markdown
Owner

@ivapbox ivapbox commented Feb 25, 2023

No description provided.

Comment thread Service/BillService.php
// неясно для чего подключается клиент, закомментировал, но это явно некорректный код
// $bill->setBillClient(new BillMicroserviceClient());
// но если нужно поменять какое-то поле (к примеру is_paid) - то в конце не забываем добавить
// $this->billRepository->save($bill);
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Уточню что save только INSERT'ит, а нужен UPDATE, т.е. или перепилить метод, или сделать новый

->setSum($billData['sum'])
->setType($billData['type'])
->setItems($items)
// ->setIsPaid($billData['is_paid'])
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Закомментировано, т.к. есть вопросы по этому полю


class ItemRepository implements ItemRepositoryInterface
{
protected $pdo;
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Забыл поправить на private

class BillRepository
class BillRepository implements BillRepositoryInterface
{
protected $pdo;
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Забыл поправить на private

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant