Passed
Pull Request — master (#38)
by Kevin
17:07
created

User::getId()   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;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * @ORM\Entity
9
 */
10
class User
11
{
12
    /**
13
     * @ORM\Id
14
     * @ORM\GeneratedValue
15
     * @ORM\Column(type="integer")
16
     */
17
    private $id;
18
19
    /**
20
     * @ORM\Column(type="string")
21
     */
22
    private $name;
23
24
    public function getId(): ?int
25
    {
26
        return $this->id;
27
    }
28
29
    public function getName(): ?string
30
    {
31
        return $this->name;
32
    }
33
34
    public function setName(string $name): self
35
    {
36
        $this->name = $name;
37
38
        return $this;
39
    }
40
}
41