Media::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the AutoFormBundle package.
7
 *
8
 * (c) David ALLIX <http://a2lix.fr>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace A2lix\AutoFormBundle\Tests\Fixtures\Entity;
15
16
use Doctrine\ORM\Mapping as ORM;
17
18
/**
19
 * @ORM\Entity
20
 */
21
class Media
22
{
23
    /**
24
     * @ORM\Id
25
     * @ORM\Column(type="integer")
26
     * @ORM\GeneratedValue(strategy="AUTO")
27
     */
28
    protected $id;
29
30
    /**
31
     * @ORM\ManyToOne(targetEntity="Product", inversedBy="medias")
32
     */
33
    protected $product;
34
35
    /**
36
     * @ORM\Column(nullable=true)
37
     */
38
    protected $url;
39
40
    /**
41
     * @ORM\Column(nullable=true)
42
     */
43
    protected $description;
44
45
    public function getId(): ?int
46
    {
47
        return $this->id;
48
    }
49
50
    public function getProduct(): Product
51
    {
52
        return $this->product;
53
    }
54
55
    public function setProduct(Product $product): self
56
    {
57
        $this->product = $product;
58
59
        return $this;
60
    }
61
62
    public function getUrl(): ?string
63
    {
64
        return $this->url;
65
    }
66
67
    public function setUrl(?string $url): self
68
    {
69
        $this->url = $url;
70
71
        return $this;
72
    }
73
74
    public function getDescription(): ?string
75
    {
76
        return $this->description;
77
    }
78
79
    public function setDescription(?string $description): self
80
    {
81
        $this->description = $description;
82
83
        return $this;
84
    }
85
}
86