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

Phone   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Importance

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

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
    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