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

User   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
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 29
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A setName() 0 5 1
A getName() 0 3 1
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