Completed
Push — master ( 7a7ba3...2e65b6 )
by Gabor
03:36
created

UserMetaEntity::getUserId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
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\DataEntity\User;
13
14
use WebHemi\DataEntity\DataEntityInterface;
15
16
/**
17
 * Class UserMetaEntity.
18
 */
19
class UserMetaEntity implements DataEntityInterface
20
{
21
    /** @var string */
22
    private $userMetaId;
23
    /** @var string */
24
    private $userId;
25
    /** @var string */
26
    private $metaKey;
27
    /** @var string */
28
    private $metaData;
29
30
    /**
31
     * @param mixed $userMetaId
32
     *
33
     * @return $this
34
     */
35 4
    public function setUserMetaId($userMetaId)
36
    {
37 4
        $this->userMetaId = $userMetaId;
38
39 4
        return $this;
40
    }
41
42
    /**
43
     * @return string
44
     */
45 2
    public function getUserMetaId()
46
    {
47 2
        return $this->userMetaId;
48
    }
49
50
    /**
51
     * @param mixed $userId
52
     *
53
     * @return $this
54
     */
55 4
    public function setUserId($userId)
56
    {
57 4
        $this->userId = $userId;
58
59 4
        return $this;
60
    }
61
62
    /**
63
     * @return string
64
     */
65 2
    public function getUserId()
66
    {
67 2
        return $this->userId;
68
    }
69
70
    /**
71
     * @param string $metaKey
72
     *
73
     * @return $this
74
     */
75 2
    public function setMetaKey($metaKey)
76
    {
77 2
        $this->metaKey = $metaKey;
78
79 2
        return $this;
80
    }
81
82
    /**
83
     * @return string
84
     */
85 1
    public function getMetaKey()
86
    {
87 1
        return $this->metaKey;
88
    }
89
90
    /**
91
     * @param mixed $metaData
92
     *
93
     * @return $this
94
     */
95 2
    public function setMetaData($metaData)
96
    {
97 2
        $this->metaData = $metaData;
98
99 2
        return $this;
100
    }
101
102
    /**
103
     * @return string
104
     */
105 1
    public function getMetaData()
106
    {
107 1
        return $this->metaData;
108
    }
109
}
110