|
123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
-
- namespace common\logic\Document\Invoice\Wrapper;
-
- use common\logic\AbstractContainer;
- use common\logic\Document\Document\Service\DocumentSolver;
- use common\logic\Document\Invoice\Repository\InvoiceRepository;
- use common\logic\Document\Invoice\Service\InvoiceBuilder;
- use common\logic\Document\Invoice\Service\InvoiceDefinition;
-
- class InvoiceContainer extends AbstractContainer
- {
- public function getServices(): array
- {
- return [
- InvoiceDefinition::class,
- DocumentSolver::class,
- InvoiceRepository::class,
- InvoiceBuilder::class,
- ];
- }
-
- public function getDefinition(): InvoiceDefinition
- {
- return InvoiceDefinition::getInstance();
- }
-
- public function getSolver(): DocumentSolver
- {
- return DocumentSolver::getInstance();
- }
-
- public function getRepository(): InvoiceRepository
- {
- return InvoiceRepository::getInstance();
- }
-
- public function getBuilder(): InvoiceBuilder
- {
- return InvoiceBuilder::getInstance();
- }
- }
|