Completed
Push — master ( c73ac3...acbb41 )
by Serhii
34:37 queued 19:37
created

FacebookResponse::getFirstName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 1
b 0
f 0
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()
46
    {
47
        return $this->id;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getEmail()
54
    {
55
        return $this->email;
56
    }
57
58
    /**
59
     * @return string
60
     */
61
    public function getFirstName()
62
    {
63
        return $this->firstName;
64
    }
65
66
    /**
67
     * @return string
68
     */
69
    public function getLastName()
70
    {
71
        return $this->lastName;
72
    }
73
74
    /**
75
     * @param string $id
76
     * @return $this
77
     */
78
    public function setId($id)
79
    {
80
        $this->id = $id;
81
        return $this;
82
    }
83
84
    /**
85
     * @param string $email
86
     * @return $this
87
     */
88
    public function setEmail($email)
89
    {
90
        $this->email = $email;
91
        return $this;
92
    }
93
94
    /**
95
     * @param string $firstName
96
     * @return $this
97
     */
98
    public function setFirstName($firstName)
99
    {
100
        $this->firstName = $firstName;
101
        return $this;
102
    }
103
104
    /**
105
     * @param string $lastName
106
     * @return $this
107
     */
108
    public function setLastName($lastName)
109
    {
110
        $this->lastName = $lastName;
111
        return $this;
112
    }
113
}
114