Passed
Pull Request — master (#181)
by Mathieu
03:28
created

Image   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 7
c 1
b 0
f 0
dl 0
loc 32
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A getPath() 0 3 1
A setPath() 0 3 1
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="integer", nullable=true)
22
     */
23
    private $prePersistedId;
0 ignored issues
show
introduced by
The private property $prePersistedId is not used, and could be removed.
Loading history...
24
25
    /**
26
     * @ORM\Column(type="string", length=255)
27
     */
28
    private $path;
29
30
    public function getId(): ?int
31
    {
32
        return $this->id;
33
    }
34
35
    public function getPath(): ?string
36
    {
37
        return $this->path;
38
    }
39
40
    public function setPath(?string $path): void
41
    {
42
        $this->path = $path;
43
    }
44
}
45