Completed
Push — master ( 6b5246...8691e9 )
by David
04:53 queued 02:40
created

Media   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 7
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 63
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getProduct() 0 4 1
A setProduct() 0 4 1
A getUrl() 0 4 1
A setUrl() 0 6 1
A getDescription() 0 4 1
A setDescription() 0 6 1
1
<?php
2
3
namespace A2lix\AutoFormBundle\Tests\Fixtures\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * @ORM\Entity
9
 */
10
class Media
11
{
12
    /**
13
     * @ORM\Id
14
     * @ORM\Column(type="integer")
15
     * @ORM\GeneratedValue(strategy="AUTO")
16
     */
17
    protected $id;
18
19
    /**
20
     * @ORM\ManyToOne(targetEntity="Product", inversedBy="medias")
21
     */
22
    protected $product;
23
24
    /**
25
     * @ORM\Column(nullable=true)
26
     */
27
    protected $url;
28
29
    /**
30
     * @ORM\Column(nullable=true)
31
     */
32
    protected $description;
33
34
    public function getId()
35
    {
36
        return $this->id;
37
    }
38
39
    public function getProduct()
40
    {
41
        return $this->product;
42
    }
43
44
    public function setProduct(Product $product)
45
    {
46
        $this->product = $product;
47
    }
48
49
    public function getUrl()
50
    {
51
        return $this->url;
52
    }
53
54
    public function setUrl($url)
55
    {
56
        $this->url = $url;
57
58
        return $this;
59
    }
60
61
    public function getDescription()
62
    {
63
        return $this->description;
64
    }
65
66
    public function setDescription($description)
67
    {
68
        $this->description = $description;
69
70
        return $this;
71
    }
72
}
73