| Total Complexity | 7 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class EnemyDeterminator |
||
| 13 | { |
||
| 14 | private AllianceRelationRepositoryInterface $allianceRelationRepository; |
||
| 15 | |||
| 16 | private ContactRepositoryInterface $contactRepository; |
||
| 17 | |||
| 18 | 4 | public function __construct( |
|
| 19 | AllianceRelationRepositoryInterface $allianceRelationRepository, |
||
| 20 | ContactRepositoryInterface $contactRepository |
||
| 21 | ) { |
||
| 22 | 4 | $this->allianceRelationRepository = $allianceRelationRepository; |
|
| 23 | 4 | $this->contactRepository = $contactRepository; |
|
| 24 | } |
||
| 25 | |||
| 26 | 4 | public function isEnemy(UserInterface $user, UserInterface $otherUser): bool |
|
| 56 | } |
||
| 57 | } |
||
| 58 |