Favourites::getTitle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace WebCMS\Entity;
4
5
use Doctrine\ORM\Mapping as orm;
6
7
/**
8
 * @orm\Entity
9
 * @author Tomáš Voslař <tomas.voslar at webcook.cz>
10
 */
11
class Favourites extends Entity
12
{
13
    /**
14
     * @orm\Column
15
     */
16
    private $link;
17
18
    /**
19
     * @orm\ManyToOne(targetEntity="User")
20
     * @orm\JoinColumn(onDelete="CASCADE")
21
     * @var User
22
     */
23
    private $user;
24
25
    /**
26
     * @orm\Column
27
     */
28
    private $title;
29
30
    public function getLink()
31
    {
32
        return $this->link;
33
    }
34
35
    public function getUser()
36
    {
37
        return $this->user;
38
    }
39
40
    public function setLink($link)
41
    {
42
        $this->link = $link;
43
    }
44
45
    public function setUser($user)
46
    {
47
        $this->user = $user;
48
    }
49
50
    public function getTitle()
51
    {
52
        return $this->title;
53
    }
54
55
    public function setTitle($title)
56
    {
57
        $this->title = $title;
58
    }
59
}
60