PriceTypeWithoutOnlyBaseEnum::isWithVat()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Fousky\Component\iDoklad\LOV;
4
5
/**
6
 * @author Lukáš Brzák <[email protected]>
7
 */
8
class PriceTypeWithoutOnlyBaseEnum extends iDokladAbstractEnum
9
{
10
    const WITH_VAT = 0;
11
12
    const WITHOUT_VAT = 1;
13
14
    /**
15
     * @return bool
16
     */
17
    public function isWithVat(): bool
18
    {
19
        return self::WITH_VAT === $this->value;
20
    }
21
22
    /**
23
     * @return bool
24
     */
25
    public function isWithoutVat(): bool
26
    {
27
        return self::WITHOUT_VAT === $this->value;
28
    }
29
}
30