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

FacebookResponse   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 114
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 60%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 114
ccs 12
cts 20
cp 0.6
rs 10
wmc 8
lcom 0
cbo 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A setId() 0 6 1
A setEmail() 0 6 1
A setFirstName() 0 6 1
A setLastName() 0 6 1
A getId() 0 4 1
A getEmail() 0 4 1
A getFirstName() 0 4 1
A getLastName() 0 4 1
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