Passed
Pull Request — master (#43)
by
unknown
02:48
created

Keyword::getKeyword()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace MovingImage\Client\VMPro\Entity;
4
5
use MovingImage\Meta\Interfaces\KeywordInterface;
6
7
/**
8
 * Class Keyword.
9
 */
10
class Keyword implements KeywordInterface
11
{
12
    /**
13
     * @Type("int")
14
     */
15
    private $id;
16
17
    /**
18
     * @Type("string")
19
     */
20
    private $text;
21
22
    /**
23
     * @return int|null
24
     */
25
    public function getId()
26
    {
27
        return $this->id;
28
    }
29
30
    /**
31
     * @param $id
32
     *
33
     * @return Keyword
34
     */
35
    public function setId($id)
36
    {
37
        $this->id = $id;
38
39
        return $this;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getKeyword()
46
    {
47
        return $this->text;
48
    }
49
50
    /**
51
     * @param $keyword
52
     *
53
     * @return Keyword
54
     */
55
    public function setKeyword($keyword)
56
    {
57
        $this->text = $keyword;
58
59
        return $this;
60
    }
61
}
62