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

Phone::setMain()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
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
}