Passed
Push — master ( 64ab61...b96172 )
by Gabor
09:36
created

UserMetaEntity   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 101
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 9
lcom 0
cbo 0
dl 0
loc 101
ccs 22
cts 22
cp 1
rs 10
c 0
b 0
f 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A getKeyData() 0 4 1
A setUserMetaId() 0 6 1
A getUserMetaId() 0 4 1
A setUserId() 0 6 1
A getUserId() 0 4 1
A setMetaKey() 0 6 1
A getMetaKey() 0 4 1
A setMetaData() 0 6 1
A getMetaData() 0 4 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 WebHemi\Data\Entity\DataEntityInterface;
15
16
/**
17
 * Class UserMetaEntity.
18
 */
19
class UserMetaEntity implements DataEntityInterface
20
{
21
    /** @var int */
22
    private $userMetaId;
23
    /** @var int */
24
    private $userId;
25
    /** @var string */
26
    private $metaKey;
27
    /** @var string */
28
    private $metaData;
29
30
    /**
31
     * Gets the value of the entity identifier.
32
     *
33
     * @return int
34
     */
35 1
    public function getKeyData()
36
    {
37 1
        return $this->userMetaId;
38
    }
39
40
    /**
41
     * @param int $userMetaId
42
     *
43
     * @return UserMetaEntity
44
     */
45 7
    public function setUserMetaId($userMetaId)
46
    {
47 7
        $this->userMetaId = $userMetaId;
48
49 7
        return $this;
50
    }
51
52
    /**
53
     * @return int
54
     */
55 3
    public function getUserMetaId()
56
    {
57 3
        return $this->userMetaId;
58
    }
59
60
    /**
61
     * @param int $userId
62
     *
63
     * @return UserMetaEntity
64
     */
65 6
    public function setUserId($userId)
66
    {
67 6
        $this->userId = $userId;
68
69 6
        return $this;
70
    }
71
72
    /**
73
     * @return int
74
     */
75 2
    public function getUserId()
76
    {
77 2
        return $this->userId;
78
    }
79
80
    /**
81
     * @param string $metaKey
82
     *
83
     * @return UserMetaEntity
84
     */
85 4
    public function setMetaKey($metaKey)
86
    {
87 4
        $this->metaKey = $metaKey;
88
89 4
        return $this;
90
    }
91
92
    /**
93
     * @return string
94
     */
95 3
    public function getMetaKey()
96
    {
97 3
        return $this->metaKey;
98
    }
99
100
    /**
101
     * @param mixed $metaData
102
     *
103
     * @return UserMetaEntity
104
     */
105 4
    public function setMetaData($metaData)
106
    {
107 4
        $this->metaData = $metaData;
108
109 4
        return $this;
110
    }
111
112
    /**
113
     * @return string
114
     */
115 3
    public function getMetaData()
116
    {
117 3
        return $this->metaData;
118
    }
119
}
120