Passed
Push — master ( 4b954d...b01812 )
by Gabor
03:38
created

UserMetaEntity::setKeyData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * WebHemi.
4
 *
5
 * PHP version 5.6
6
 *
7
 * @copyright 2012 - 2016 Gixx-web (http://www.gixx-web.com)
8
 * @license   https://opensource.org/licenses/MIT The MIT License (MIT)
9
 *
10
 * @link      http://www.gixx-web.com
11
 */
12
namespace WebHemi\Data\Entity\User;
13
14
use DateTime;
15
use WebHemi\Data\Entity\DataEntityInterface;
16
17
/**
18
 * Class UserMetaEntity.
19
 */
20
class UserMetaEntity implements DataEntityInterface
21
{
22
    /** @var int */
23
    private $userMetaId;
24
    /** @var int */
25
    private $userId;
26
    /** @var string */
27
    private $metaKey;
28
    /** @var string */
29
    private $metaData;
30
    /** @var DateTime */
31
    private $dateCreated;
32
    /** @var DateTime */
33
    private $dateModified;
34
35
    /**
36
     * Sets the value of the entity identifier.
37
     *
38
     * @param int $entityId
39
     * @return UserMetaEntity
40
     */
41 1
    public function setKeyData($entityId)
42
    {
43 1
        $this->userMetaId = $entityId;
44
45 1
        return $this;
46
    }
47
48
    /**
49
     * Gets the value of the entity identifier.
50
     *
51
     * @return int
52
     */
53 2
    public function getKeyData()
54
    {
55 2
        return $this->userMetaId;
56
    }
57
58
    /**
59
     * @param int $userMetaId
60
     *
61
     * @return UserMetaEntity
62
     */
63 7
    public function setUserMetaId($userMetaId)
64
    {
65 7
        $this->userMetaId = $userMetaId;
66
67 7
        return $this;
68
    }
69
70
    /**
71
     * @return int
72
     */
73 3
    public function getUserMetaId()
74
    {
75 3
        return $this->userMetaId;
76
    }
77
78
    /**
79
     * @param int $userId
80
     *
81
     * @return UserMetaEntity
82
     */
83 6
    public function setUserId($userId)
84
    {
85 6
        $this->userId = $userId;
86
87 6
        return $this;
88
    }
89
90
    /**
91
     * @return int
92
     */
93 3
    public function getUserId()
94
    {
95 3
        return $this->userId;
96
    }
97
98
    /**
99
     * @param string $metaKey
100
     *
101
     * @return UserMetaEntity
102
     */
103 4
    public function setMetaKey($metaKey)
104
    {
105 4
        $this->metaKey = $metaKey;
106
107 4
        return $this;
108
    }
109
110
    /**
111
     * @return string
112
     */
113 3
    public function getMetaKey()
114
    {
115 3
        return $this->metaKey;
116
    }
117
118
    /**
119
     * @param mixed $metaData
120
     *
121
     * @return UserMetaEntity
122
     */
123 4
    public function setMetaData($metaData)
124
    {
125 4
        $this->metaData = $metaData;
126
127 4
        return $this;
128
    }
129
130
    /**
131
     * @return string
132
     */
133 3
    public function getMetaData()
134
    {
135 3
        return $this->metaData;
136
    }
137
138
    /**
139
     * @param DateTime $dateCreated
140
     *
141
     * @return UserMetaEntity
142
     */
143 2
    public function setDateCreated(DateTime $dateCreated)
144
    {
145 2
        $this->dateCreated = $dateCreated;
146
147 2
        return $this;
148
    }
149
150
    /**
151
     * @return DateTime
152
     */
153 1
    public function getDateCreated()
154
    {
155 1
        return $this->dateCreated;
156
    }
157
158
    /**
159
     * @param DateTime $dateModified
160
     *
161
     * @return UserMetaEntity
162
     */
163 2
    public function setDateModified(DateTime $dateModified)
164
    {
165 2
        $this->dateModified = $dateModified;
166
167 2
        return $this;
168
    }
169
170
    /**
171
     * @return DateTime
172
     */
173 1
    public function getDateModified()
174
    {
175 1
        return $this->dateModified;
176
    }
177
}
178