Passed
Pull Request — master (#56)
by
unknown
02:33
created

Phone   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 75
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 13
c 1
b 0
f 0
dl 0
loc 75
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getMain() 0 3 1
A setMain() 0 5 1
A setMobile() 0 5 1
A setWork() 0 5 1
A getWork() 0 3 1
A getMobile() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Ticketpark\SaferpayJson\Request\Container;
4
5
use JMS\Serializer\Annotation\SerializedName;
6
7
final class Phone
8
{
9
    /**
10
     * @var string|null
11
     * @SerializedName("Main")
12
     */
13
    private $main;
14
15
    /**
16
     * @var string|null
17
     * @SerializedName("Mobile")
18
     */
19
    private $mobile;
20
21
    /**
22
     * @var string|null
23
     * @SerializedName("Work")
24
     */
25
    private $work;
26
27
    /**
28
     * @return string|null
29
     */
30
    public function getMain(): ?string
31
    {
32
        return $this->main;
33
    }
34
35
    /**
36
     * @param string|null $main
37
     * @return Phone
38
     */
39
    public function setMain(?string $main): self
40
    {
41
        $this->main = $main;
42
43
        return $this;
44
    }
45
46
    /**
47
     * @return string|null
48
     */
49
    public function getMobile(): ?string
50
    {
51
        return $this->mobile;
52
    }
53
54
    /**
55
     * @param string|null $mobile
56
     * @return Phone
57
     */
58
    public function setMobile(?string $mobile): self
59
    {
60
        $this->mobile = $mobile;
61
62
        return $this;
63
    }
64
65
    /**
66
     * @return string|null
67
     */
68
    public function getWork(): ?string
69
    {
70
        return $this->work;
71
    }
72
73
    /**
74
     * @param string|null $work
75
     * @return Phone
76
     */
77
    public function setWork(?string $work): self
78
    {
79
        $this->work = $work;
80
81
        return $this;
82
    }
83
}