| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 11.76% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class ManagerProviderFactory implements ManagerProviderFactoryInterface |
||
| 16 | 1 | { |
|
| 17 | public function __construct( |
||
| 18 | private CrewCreatorInterface $crewCreator, |
||
| 19 | private ColonyLibFactoryInterface $colonyLibFactory, |
||
| 20 | private TroopTransferUtilityInterface $troopTransferUtility, |
||
| 21 | 1 | private StorageManagerInterface $storageManager |
|
| 22 | ) {} |
||
| 23 | |||
| 24 | #[\Override] |
||
| 25 | public function getManagerProviderColony(Colony $colony): ManagerProviderInterface |
||
| 26 | { |
||
| 27 | return new ManagerProviderColony( |
||
| 28 | $colony, |
||
| 29 | $this->crewCreator, |
||
| 30 | $this->colonyLibFactory, |
||
| 31 | $this->storageManager, |
||
| 32 | $this->troopTransferUtility |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | |||
| 36 | #[\Override] |
||
| 44 | ); |
||
| 45 | } |
||
| 46 | |||
| 47 | #[\Override] |
||
| 53 |