Completed
Push — master ( d085b4...8770d9 )
by Dennis
06:04 queued 03:00
created

TaxRecord::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 2
eloc 2
nc 2
nop 1
crap 6
1
<?php
2
3
namespace Defr\Ares;
4
5
/**
6
 * Class TaxRecord.
7
 *
8
 * @author Dennis Fridrich <[email protected]>
9
 */
10
class TaxRecord
11
{
12
    /**
13
     * @var string
14
     */
15
    private $taxId = null;
16
17
    /**
18
     * TaxRecord constructor.
19
     * @param string $taxId
20
     */
21
    public function __construct($taxId)
22
    {
23
        $this->taxId = !empty($taxId) ? $taxId : null;
24
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function getTaxId()
30
    {
31
        return $this->taxId;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function __toString()
38
    {
39
        return strval($this->taxId);
40
    }
41
}
42