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

Keyword   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 52
rs 10
c 0
b 0
f 0

4 Methods

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