VatRateTypeEnum::isZero()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
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 View Code Duplication
class VatRateTypeEnum extends iDokladAbstractEnum
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
9
{
10
    const REDUCED1 = 0;
11
12
    const BASIC = 1;
13
14
    const ZERO = 2;
15
16
    const REDUCED2 = 3;
17
18
    /**
19
     * @return bool
20
     */
21
    public function isReduced1(): bool
22
    {
23
        return self::REDUCED1 === $this->value;
24
    }
25
26
    /**
27
     * @return bool
28
     */
29
    public function isBasic(): bool
30
    {
31
        return self::BASIC === $this->value;
32
    }
33
34
    /**
35
     * @return bool
36
     */
37
    public function isZero(): bool
38
    {
39
        return self::ZERO === $this->value;
40
    }
41
42
    /**
43
     * @return bool
44
     */
45
    public function isReduced2(): bool
46
    {
47
        return self::REDUCED2 === $this->value;
48
    }
49
}
50