Converter::getYear()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Andegna\Converter;
4
5
use Andegna\Validator\ValidIntegerValidator;
6
7
/**
8
 * Converter abstraction.
9
 *
10
 * @see FromJdnConverter
11
 * @see ToJdnConverter
12
 */
13
abstract class Converter
14
{
15
    use ValidIntegerValidator;
16
17
    /** @var int */
18
    protected $day;
19
20
    /** @var int */
21
    protected $month;
22
23
    /** @var int */
24
    protected $year;
25
26
    /** @var int */
27
    protected $jdn;
28
29
    /**
30
     * Get the day.
31
     *
32
     * @return int
33
     */
34 81
    public function getDay(): int
35
    {
36 81
        return $this->day;
37
    }
38
39
    /**
40
     * Get the month.
41
     *
42
     * @return int
43
     */
44 81
    public function getMonth(): int
45
    {
46 81
        return $this->month;
47
    }
48
49
    /**
50
     * Get the year.
51
     *
52
     * @return int
53
     */
54 81
    public function getYear(): int
55
    {
56 81
        return $this->year;
57
    }
58
59
    /**
60
     * Get the JDN.
61
     *
62
     * @return int
63
     */
64 81
    public function getJdn(): int
65
    {
66 81
        return $this->jdn;
67
    }
68
}
69