Favourites   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 1
dl 0
loc 49
ccs 0
cts 15
cp 0
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getLink() 0 4 1
A getUser() 0 4 1
A setLink() 0 4 1
A setUser() 0 4 1
A getTitle() 0 4 1
A setTitle() 0 4 1
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