|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
-
- namespace common\logic\Document\DeliveryNote\Module;
-
- use common\logic\Document\Document\Module\DocumentModule;
- use common\logic\Document\DeliveryNote\Repository\DeliveryNoteRepository;
- use common\logic\Document\DeliveryNote\Service\DeliveryNoteBuilder;
- use common\logic\Document\DeliveryNote\Service\DeliveryNoteDefinition;
- use common\logic\Document\DeliveryNote\Service\DeliveryNoteSolver;
-
- /**
- * @mixin DeliveryNoteDefinition
- * @mixin DeliveryNoteSolver
- * @mixin DeliveryNoteRepository
- * @mixin DeliveryNoteBuilder
- */
- class DeliveryNoteModule extends DocumentModule
- {
- public function getServices(): array
- {
- return [
- DeliveryNoteDefinition::class,
- DeliveryNoteSolver::class,
- DeliveryNoteRepository::class,
- DeliveryNoteBuilder::class,
- ];
- }
-
- public function getDefinition(): DeliveryNoteDefinition
- {
- return DeliveryNoteDefinition::getInstance();
- }
-
- public function getSolver(): DeliveryNoteSolver
- {
- return DeliveryNoteSolver::getInstance();
- }
-
- public function getRepository(): DeliveryNoteRepository
- {
- return DeliveryNoteRepository::getInstance();
- }
-
- public function getBuilder(): DeliveryNoteBuilder
- {
- return DeliveryNoteBuilder::getInstance();
- }
- }
|