| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3.072 |
| Changes | 2 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 30 | 1 | #[\Override] |
|
| 31 | public function canBeAccessedFrom( |
||
| 32 | InteractionMemberInterface $other, |
||
| 33 | callable $shouldCheck |
||
| 34 | ): ?InteractionCheckType { |
||
| 35 | |||
| 36 | if ( |
||
| 37 | 1 | $shouldCheck(InteractionCheckType::EXPECT_TARGET_DOCKED_OR_NO_ION_STORM) |
|
| 38 | 1 | && $this->trumfield->getLocation()->hasAnomaly(AnomalyTypeEnum::ION_STORM) |
|
| 39 | ) { |
||
| 40 | return InteractionCheckType::EXPECT_TARGET_DOCKED_OR_NO_ION_STORM; |
||
| 41 | } |
||
| 42 | |||
| 43 | 1 | return null; |
|
| 44 | } |
||
| 58 |