|
- <?php
-
- namespace common\logic\User\CreditHistory;
-
- use common\logic\ContainerInterface;
- use common\logic\AbstractSingleton;
-
- class CreditHistoryContainer extends AbstractSingleton implements ContainerInterface
- {
- public function getEntityFqcn(): string
- {
- return CreditHistory::class;
- }
-
- public function getServices(): array
- {
- return [
- CreditHistorySolver::class,
- CreditHistoryBuilder::class,
- CreditHistoryRepository::class,
- ];
- }
-
- public function getSolver(): CreditHistorySolver
- {
- return new CreditHistorySolver();
- }
-
- public function getBuilder(): CreditHistoryBuilder
- {
- return new CreditHistoryBuilder();
- }
-
- public function getRepository(): CreditHistoryRepository
- {
- return new CreditHistoryRepository();
- }
- }
|