User   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
eloc 7
c 1
b 0
f 1
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
 * @ORM\Table(name="users")
10
 */
11
class User
12
{
13
    /**
14
     * @ORM\Id
15
     * @ORM\GeneratedValue
16
     * @ORM\Column(type="integer")
17
     */
18
    private $id;
19
20
    /**
21
     * @ORM\Column(type="string")
22
     */
23
    private $name;
24
25
    public function getId(): ?int
26
    {
27
        return $this->id;
28
    }
29
30
    public function getName(): ?string
31
    {
32
        return $this->name;
33
    }
34
35
    public function setName(string $name): self
36
    {
37
        $this->name = $name;
38
39
        return $this;
40
    }
41
}
42