Passed
Push — master ( 5f46e8...f05eff )
by Paweł
03:06
created

Potion   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AardsGerds\Game\Inventory\Alchemy\Potion;
6
7
use AardsGerds\Game\Inventory\Coin;
8
use AardsGerds\Game\Inventory\InventoryItem;
9
use AardsGerds\Game\Player\Player;
10
11
abstract class Potion extends InventoryItem
12
{
13
    public function __construct(
14
        string $name,
15
        string $description,
16
        Coin $sellValue,
17
        Coin $buyValue,
18
    ) {
19
        parent::__construct($name, $description, $sellValue, $buyValue);
20
    }
21
22
    abstract public function drink(Player $player): void;
23
}
24