ElectronicRecordsOfSalesStatusEnum   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A isNotRegistered() 0 4 1
A isRegistered() 0 4 1
1
<?php
2
3
namespace Fousky\Component\iDoklad\LOV;
4
5
/**
6
 * @author Lukáš Brzák <[email protected]>
7
 */
8
class ElectronicRecordsOfSalesStatusEnum extends iDokladAbstractEnum
9
{
10
    const NOT_REGISTERED = 1;
11
12
    const REGISTERED = 2;
13
14
    /**
15
     * @return bool
16
     */
17
    public function isNotRegistered(): bool
18
    {
19
        return self::NOT_REGISTERED === $this->value;
20
    }
21
22
    /**
23
     * @return bool
24
     */
25
    public function isRegistered(): bool
26
    {
27
        return self::REGISTERED === $this->value;
28
    }
29
}
30