In order to implement a Clean Code architecture, this project uses 4 different concepts: entities, interactors, boundaries and gateways.
Represent the business logic.
Represent the specific use cases of the application.
A boundary is formed by two sets of interfaces:
- The first set is used by the Delivery Mechanism controller and implemented by the interactor. It accepts Request Model data structure.
- The second one is used by the interactor and implemented by the Delivery Mechanism presenter. It accepts Response Model data structure.
This interface is used by the interactor and implemented by the Gateway Entity Implementation. This last one will be responsible for getting the data from the database and convert them into entities which will be used by the Interactor.
docker-compose run composer install
docker-compose run composer update
docker-compose run phpunit
docker-compose run phpunit --generate-configuration