StaticSuccessCalculator   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 5
Bugs 0 Features 1
Metric Value
wmc 2
eloc 3
c 5
b 0
f 1
dl 0
loc 10
rs 10
ccs 3
cts 3
cp 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A hasHit() 0 3 1
A hasHealed() 0 3 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
{
13
    public function hasHit(Character $character1, Character $character2, ?CharacterAttackSkill $skill = null): bool
14
    {
15 1
        return true;
16
    }
17
18
    public function hasHealed(Character $healer): bool
19
    {
20 1
        return true;
21
    }
22
}
23