Passed
Pull Request — master (#57)
by Manuel
02:39
created

Phone::getMain()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
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
    public function getMain(): ?string
28
    {
29
        return $this->main;
30
    }
31
32
    public function setMain(?string $main): self
33
    {
34
        $this->main = $main;
35
36
        return $this;
37
    }
38
39
    public function getMobile(): ?string
40
    {
41
        return $this->mobile;
42
    }
43
44
    public function setMobile(?string $mobile): self
45
    {
46
        $this->mobile = $mobile;
47
48
        return $this;
49
    }
50
51
    public function getWork(): ?string
52
    {
53
        return $this->work;
54
    }
55
56
    public function setWork(?string $work): self
57
    {
58
        $this->work = $work;
59
60
        return $this;
61
    }
62
}
63