Passed
Push — master ( f3e1d4...54fdf8 )
by Jakub
02:24
created

EffectProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A toCombatEffect() 0 8 1
1
<?php
2
declare(strict_types=1);
3
4
namespace HeroesofAbenez\Combat;
5
6
/**
7
 * EffectProvider
8
 *
9
 * @author Jakub Konečný
10
 */
11
class EffectProvider implements ICharacterEffectProvider {
12
  public function toCombatEffect(): ?CharacterEffect {
13
    return new CharacterEffect([
14
      "id" => "provider1Effect",
15
      "type" => SkillSpecial::TYPE_BUFF,
16
      "source" => CharacterEffect::SOURCE_EQUIPMENT,
17
      "value" => 10,
18
      "duration" => CharacterEffect::DURATION_COMBAT,
19
      "stat" => SkillSpecial::STAT_HITPOINTS,
20
    ]);
21
  }
22
}
23
?>