SkiDataStartRecordFormat   A
last analyzed

Complexity

Total Complexity 11

Size/Duplication

Total Lines 142
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 21
dl 0
loc 142
rs 10
c 0
b 0
f 0
wmc 11

11 Methods

Rating   Name   Duplication   Size   Complexity  
A setFacilityNumber() 0 3 1
A getVersionRecordStructure() 0 2 1
A setVersionRecordStructure() 0 3 1
A setDateFile() 0 3 1
A __construct() 0 1 1
A getDateFile() 0 2 1
A setNumberRecords() 0 3 1
A getCurrency() 0 2 1
A setCurrency() 0 3 1
A getFacilityNumber() 0 2 1
A getNumberRecords() 0 2 1
1
<?php
2
3
/**
4
 * This file is part of the skidata-library package.
5
 *
6
 * (c) 2017 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Library\SkiData\Entity;
13
14
use DateTime;
15
16
/**
17
 * SkiData start record rormat entity.
18
 *
19
 * @author webeweb <https://github.com/webeweb/>
20
 * @package WBW\Library\SkiData\Entity
21
 */
22
class SkiDataStartRecordFormat {
23
24
    /**
25
     * Currency.
26
     *
27
     * @var string
28
     */
29
    private $currency;
30
31
    /**
32
     * Date of file.
33
     *
34
     * @var DateTime
35
     */
36
    private $dateFile;
37
38
    /**
39
     * Facility number
40
     *
41
     * @var integer
42
     */
43
    private $facilityNumber;
44
45
    /**
46
     * Number of records.
47
     *
48
     * @var integer
49
     */
50
    private $numberRecords;
51
52
    /**
53
     * Version of record structure.
54
     *
55
     * @var integer
56
     */
57
    private $versionRecordStructure;
58
59
    /**
60
     * Constructor.
61
     */
62
    public function __construct() {
63
        // NOTHING TO DO.
64
    }
65
66
    /**
67
     * Get the currency.
68
     *
69
     * @return string Returns the currency.
70
     */
71
    public function getCurrency() {
72
        return $this->currency;
73
    }
74
75
    /**
76
     * Get the date of file.
77
     *
78
     * @return DateTime Returns the date of file.
79
     */
80
    public function getDateFile() {
81
        return $this->dateFile;
82
    }
83
84
    /**
85
     * Get the facility number.
86
     *
87
     * @return integer Returns the facility number.
88
     */
89
    public function getFacilityNumber() {
90
        return $this->facilityNumber;
91
    }
92
93
    /**
94
     * Get the number of records.
95
     *
96
     * @return integer Returns the number of records.
97
     */
98
    public function getNumberRecords() {
99
        return $this->numberRecords;
100
    }
101
102
    /**
103
     * Get the version of record structure.
104
     *
105
     * @return integer Returns the version of record structure.
106
     */
107
    public function getVersionRecordStructure() {
108
        return $this->versionRecordStructure;
109
    }
110
111
    /**
112
     * Set the currency.
113
     *
114
     * @param string $currency The currency.
115
     * @return SkiDataStartRecordFormat Returns the SkiData start record format entity.
116
     */
117
    public function setCurrency($currency) {
118
        $this->currency = $currency;
119
        return $this;
120
    }
121
122
    /**
123
     * Set the date of file.
124
     *
125
     * @param DateTime $dateFile The date of file.
126
     * @return SkiDataStartRecordFormat Returns the SkiData start record format entity.
127
     */
128
    public function setDateFile(DateTime $dateFile = null) {
129
        $this->dateFile = $dateFile;
130
        return $this;
131
    }
132
133
    /**
134
     * Set the facility number.
135
     *
136
     * @param integer $facilityNumber The facility number.
137
     * @return SkiDataStartRecordFormat Returns the SkiData start record format entity.
138
     */
139
    public function setFacilityNumber($facilityNumber) {
140
        $this->facilityNumber = $facilityNumber;
141
        return $this;
142
    }
143
144
    /**
145
     * Set the number of records.
146
     *
147
     * @param integer $numberRecords The number of records.
148
     * @return SkiDataStartRecordFormat Returns the SkiData start record format entity.
149
     */
150
    public function setNumberRecords($numberRecords) {
151
        $this->numberRecords = $numberRecords;
152
        return $this;
153
    }
154
155
    /**
156
     * Set the version of record structure.
157
     *
158
     * @param integer $versionRecordStructure The version of record structure.
159
     * @return SkiDataStartRecordFormat Returns the SkiData start record format entity.
160
     */
161
    public function setVersionRecordStructure($versionRecordStructure) {
162
        $this->versionRecordStructure = $versionRecordStructure;
163
        return $this;
164
    }
165
166
}
167