You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UnitModule.php 640B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace common\logic\Config\Unit\Module;
  3. use common\logic\AbstractModule;
  4. use common\logic\Config\Unit\Service\UnitDefinition;
  5. use common\logic\Config\Unit\Service\UnitSolver;
  6. /**
  7. * @mixin UnitDefinition
  8. * @mixin UnitSolver
  9. */
  10. class UnitModule extends AbstractModule
  11. {
  12. public function getServices(): array
  13. {
  14. return [
  15. UnitDefinition::class,
  16. UnitSolver::class
  17. ];
  18. }
  19. public function getDefinition(): UnitDefinition
  20. {
  21. return UnitDefinition::getInstance();
  22. }
  23. public function getSolver(): UnitSolver
  24. {
  25. return UnitSolver::getInstance();
  26. }
  27. }