Completed
Push — master ( b2206c...5f69d8 )
by Jakub
02:25
created

StaticSuccessCalculator   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 7
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A hasHit() 0 2 1
A hasHealed() 0 2 1
1
<?php
2
declare(strict_types=1);
3
4
namespace HeroesofAbenez\Combat;
5
6
/**
7
 * StaticSuccessCalculator
8
 *
9
 * @author Jakub Konečný
10
 */
11 1
final class StaticSuccessCalculator implements ISuccessCalculator {
12
  public function hasHit(Character $character1, Character $character2, ?CharacterAttackSkill $skill = null): bool {
13 1
    return true;
14
  }
15
  
16
  public function hasHealed(Character $healer): bool {
17 1
    return true;
18
  }
19
}
20
?>