Completed
Pull Request — master (#137)
by
unknown
11:25
created

DTOCustomer   A

Complexity

Total Complexity 12

Size/Duplication

Total Lines 114
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 114
rs 10
c 0
b 0
f 0
wmc 12
lcom 0
cbo 0

12 Methods

Rating   Name   Duplication   Size   Complexity  
A setSocialToken() 0 6 1
A getSocialToken() 0 4 1
A setSocialNetwork() 0 6 1
A getSocialNetwork() 0 4 1
A setApiKeyToken() 0 6 1
A getApiKeyToken() 0 4 1
A setFirstName() 0 6 1
A getFirstname() 0 4 1
A setLastName() 0 6 1
A getLastName() 0 4 1
A setEmail() 0 6 1
A getEmail() 0 4 1
1
<?php
2
3
namespace AppBundle\Entity;
4
5
use Symfony\Component\Validator\Constraints as Assert;
6
7
8
class DTOCustomer
9
{
10
    /**
11
     * @var string
12
     * @Assert\Type("string")
13
     */
14
    public $apiKeyToken;
15
    /**
16
     * @var string
17
     * @Assert\Type("string")
18
     */
19
    public $firstName;
20
    /**
21
     * @var string
22
     * @Assert\Type("string")
23
     */
24
    public $lastName;
25
    /**
26
    * @var string
27
    * @Assert\Type("string")
28
    * @Assert\Email()
29
    */
30
31
    public $email;
32
    /**
33
     * @var string
34
     * @Assert\Type("string")
35
     */
36
    public $socialNetwork;
37
    /**
38
     * @var string
39
     * @Assert\Type("string")
40
     */
41
    public $socialToken;
42
43
    public function setSocialToken($socialToken)
44
    {
45
        $this->socialToken = $socialToken;
46
47
        return $this;
48
    }
49
50
51
    public function getSocialToken()
52
    {
53
        return $this->socialToken;
54
    }
55
56
    public function setSocialNetwork($socialNetwork)
57
    {
58
        $this->socialNetwork = $socialNetwork;
59
60
        return $this;
61
    }
62
63
64
    public function getSocialNetwork()
65
    {
66
        return $this->socialNetwork;
67
    }
68
69
    public function setApiKeyToken($apiKeyToken)
70
    {
71
        $this->apiKeyToken = $apiKeyToken;
72
73
        return $this;
74
    }
75
76
77
    public function getApiKeyToken()
78
    {
79
        return $this->apiKeyToken;
80
    }
81
82
    public function setFirstName($firstName)
83
    {
84
        $this->firstName = $firstName;
85
86
        return $this;
87
    }
88
89
90
    public function getFirstname()
91
    {
92
        return $this->firstName;
93
    }
94
95
96
    public function setLastName($lastName)
97
    {
98
        $this->lastName = $lastName;
99
100
        return $this;
101
    }
102
103
104
    public function getLastName()
105
    {
106
        return $this->lastName;
107
    }
108
109
    public function setEmail($email)
110
    {
111
        $this->email = $email;
112
113
        return $this;
114
    }
115
116
117
    public function getEmail()
118
    {
119
        return $this->email;
120
    }
121
}
122