F103   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 50
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getNumber() 0 4 1
A setNumber() 0 6 1
A getDate() 0 4 1
A setDate() 0 6 1
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