Passed
Push — master ( 0416dc...1faf97 )
by Kevin
03:44
created

Image::getPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Zenstruck\Foundry\Tests\Fixtures\Entity\Cascade;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * @ORM\Entity
9
 * @ORM\Table(name="image_cascade")
10
 */
11
class Image
12
{
13
    /**
14
     * @ORM\Id
15
     * @ORM\GeneratedValue
16
     * @ORM\Column(type="integer")
17
     */
18
    private $id;
19
20
    /**
21
     * @ORM\Column(type="string", length=255)
22
     */
23
    private $path;
24
25
    public function getId(): ?int
26
    {
27
        return $this->id;
28
    }
29
30
    public function getPath(): ?string
31
    {
32
        return $this->path;
33
    }
34
35
    public function setPath(?string $path): void
36
    {
37
        $this->path = $path;
38
    }
39
}
40