Behavior   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 15
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTariffType() 0 3 1
A setTariffType() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace hiqdev\php\billing\product\behavior;
4
5
use hiqdev\php\billing\product\Domain\Model\TariffTypeInterface;
6
7
abstract class Behavior implements BehaviorInterface
8
{
9
    private TariffTypeInterface $tariffType;
10
11
    public function setTariffType(TariffTypeInterface $tariffTypeName): void
12
    {
13
        $this->tariffType = $tariffTypeName;
14
    }
15
16
    public function getTariffType(): TariffTypeInterface
17
    {
18
        return $this->tariffType;
19
    }
20
21
    abstract public function description(): string;
22
}
23