F103::getDate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace PimpayBundle\Model;
4
5
/**
6
 * Class F103
7
 * @package PimpayBundle\Model
8
 */
9
class F103
10
{
11
    /**
12
     * @var int
13
     */
14
    private $number;
15
16
    /**
17
     * @var string
18
     */
19
    private $date;
20
21
    /**
22
     * @return int
23
     */
24
    public function getNumber(): int
25
    {
26
        return $this->number;
27
    }
28
29
    /**
30
     * @param int $number
31
     * @return $this
32
     */
33
    public function setNumber(int $number)
34
    {
35
        $this->number = $number;
36
37
        return $this;
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function getDate(): string
44
    {
45
        return $this->date;
46
    }
47
48
    /**
49
     * @param \DateTime $date
50
     * @return $this
51
     */
52
    public function setDate(\DateTime $date)
53
    {
54
        $this->date = $date->format('Y-m-d');
55
56
        return $this;
57
    }
58
}
59