Completed
Pull Request — master (#164)
by Ihor
25:00 queued 13:13
created

FacebookResponse::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
namespace AppBundle\Model;
4
5
use JMS\Serializer\Annotation\Accessor;
6
use JMS\Serializer\Annotation\Type;
7
8
class FacebookResponse
9
{
10
    /**
11
     * @var string
12
     *
13
     * @Type("string")
14
     * @Accessor(getter="getId")
15
     */
16
    protected $id;
17
18
    /**
19
     * @var string
20
     *
21
     * @Type("string")
22
     * @Accessor(getter="getEmail")
23
     */
24
    protected $email;
25
26
    /**
27
     * @var string
28
     *
29
     * @Type("string")
30
     * @Accessor(getter="getFirstName")
31
     */
32
    protected $firstName;
33
34
    /**
35
     * @var string
36
     *
37
     * @Type("string")
38
     * @Accessor(getter="getLastName")
39
     */
40
    protected $lastName;
41
42
    /**
43
     * @return string
44
     */
45
    public function getId(): ?string
46
    {
47
        return $this->id;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getEmail(): ?string
54
    {
55
        return $this->email;
56
    }
57
58
    /**
59
     * @return string
60
     */
61
    public function getFirstName(): ?string
62
    {
63
        return $this->firstName;
64
    }
65
66
    /**
67
     * @return string
68
     */
69
    public function getLastName(): ?string
70
    {
71
        return $this->lastName;
72
    }
73
74
    /**
75
     * @param string $id
76
     *
77
     * @return FacebookResponse
78
     */
79 2
    public function setId(?string $id): FacebookResponse
80
    {
81 2
        $this->id = $id;
82
83 2
        return $this;
84
    }
85
86
    /**
87
     * @param string $email
88
     *
89
     * @return FacebookResponse
90
     */
91 1
    public function setEmail(?string $email): FacebookResponse
92
    {
93 1
        $this->email = $email;
94
95 1
        return $this;
96
    }
97
98
    /**
99
     * @param string $firstName
100
     *
101
     * @return FacebookResponse
102
     */
103 1
    public function setFirstName(?string $firstName): FacebookResponse
104
    {
105 1
        $this->firstName = $firstName;
106
107 1
        return $this;
108
    }
109
110
    /**
111
     * @param string $lastName
112
     *
113
     * @return FacebookResponse
114
     */
115 1
    public function setLastName(?string $lastName): FacebookResponse
116
    {
117 1
        $this->lastName = $lastName;
118
119 1
        return $this;
120
    }
121
}
122