TagRelation::getModel()   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 Mykees\TagBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * TagRelation
9
 *
10
 * @ORM\Table()
11
 * @ORM\Entity(repositoryClass="Mykees\TagBundle\Repository\TagRelationRepository")
12
 */
13
class TagRelation
14
{
15
    /**
16
     * @var integer
17
     *
18
     * @ORM\Column(name="id", type="integer")
19
     * @ORM\Id
20
     * @ORM\GeneratedValue(strategy="AUTO")
21
     */
22
    private $id;
23
24
    /**
25
     * @var string
26
     *
27
     * @ORM\Column(name="model", type="string", length=80)
28
     */
29
    private $model;
30
31
    /**
32
     * @var integer
33
     *
34
     * @ORM\Column(name="model_id", type="integer")
35
     */
36
    private $modelId;
37
38
    /**
39
     * @ORM\ManyToOne(targetEntity="Mykees\TagBundle\Entity\Tag",inversedBy="tagRelation")
40
     */
41
    private $tag;
42
43
44
    /**
45
     * Get id
46
     *
47
     * @return integer 
48
     */
49
    public function getId()
50
    {
51
        return $this->id;
52
    }
53
54
    /**
55
     * Set model
56
     *
57
     * @param string $model
58
     * @return TagRelation
59
     */
60
    public function setModel($model)
61
    {
62
        $this->model = $model;
63
64
        return $this;
65
    }
66
67
    /**
68
     * Get model
69
     *
70
     * @return string 
71
     */
72
    public function getModel()
73
    {
74
        return $this->model;
75
    }
76
77
    /**
78
     * Set modelId
79
     *
80
     * @param integer $modelId
81
     * @return TagRelation
82
     */
83
    public function setModelId($modelId)
84
    {
85
        $this->modelId = $modelId;
86
87
        return $this;
88
    }
89
90
    /**
91
     * Get modelId
92
     *
93
     * @return integer 
94
     */
95
    public function getModelId()
96
    {
97
        return $this->modelId;
98
    }
99
100
    /**
101
     * Set tag
102
     *
103
     * @param \Mykees\TagBundle\Entity\Tag $tag
104
     * @return TagRelation
105
     */
106
    public function setTag(\Mykees\TagBundle\Entity\Tag $tag = null)
107
    {
108
        $this->tag = $tag;
109
110
        return $this;
111
    }
112
113
    /**
114
     * Get tag
115
     *
116
     * @return \Mykees\TagBundle\Entity\Tag 
117
     */
118
    public function getTag()
119
    {
120
        return $this->tag;
121
    }
122
}
123