Tagging::getTag()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace DoS\TaggingBundle\Model;
4
5
use DoS\ResourceBundle\Model\OriginatorTrait;
6
7
/**
8
 * @author liverbool <[email protected]>
9
 */
10
class Tagging implements TaggingInterface
11
{
12
    use OriginatorTrait;
13
14
    /**
15
     * @var int
16
     */
17
    protected $id;
18
19
    /**
20
     * @var TagInterface
21
     */
22
    protected $tag;
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function getId()
28
    {
29
        return $this->id;
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function getTag()
36
    {
37
        return $this->tag;
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function setTag(TagInterface $tag = null)
44
    {
45
        $this->tag = $tag;
46
    }
47
}
48