Passed
Push — master ( 812b31...82efe3 )
by Paweł
02:52
created

Potion::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 7
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 4
crap 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\Inventory\Usable;
10
11
abstract class Potion extends InventoryItem implements Usable
12
{
13 1
    public function __construct(
14
        string $name,
15
        string $description,
16
        Coin $sellValue,
17
        Coin $buyValue,
18
    ) {
19 1
        parent::__construct($name, $description, $sellValue, $buyValue);
20 1
    }
21
}
22