| Total Complexity | 7 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 95% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class FlightCompanyFactory |
||
| 12 | { |
||
| 13 | 1 | public function __construct(private PreFlightConditionsCheckInterface $preFlightConditionsCheck) {} |
|
| 14 | |||
| 15 | 6 | public function create(SpacecraftWrapperInterface $leadWrapper): FlightCompany |
|
| 23 | 6 | ); |
|
| 24 | } |
||
| 25 | |||
| 26 | 6 | private function getSubject(SpacecraftWrapperInterface $leadWrapper): SpacecraftWrapperInterface|FleetWrapperInterface |
|
| 39 | } |
||
| 40 | |||
| 41 | /** @return Collection<int, covariant SpacecraftWrapperInterface> */ |
||
| 42 | 6 | private function getMembers(SpacecraftWrapperInterface|FleetWrapperInterface $subject): Collection |
|
| 49 |