Team::setImg()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\GameCore\Persistence\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * @ORM\Entity(repositoryClass="App\GameCore\Persistence\Repository\TeamRepository")
9
 */
10
class Team
11
{
12
    /**
13
     * @ORM\Id()
14
     * @ORM\GeneratedValue()
15
     * @ORM\Column(type="integer")
16
     */
17
    private $id;
18
19
    /**
20
     * @ORM\Column(type="string", length=255)
21
     */
22
    private $name;
23
24
    /**
25
     * @ORM\Column(type="string", length=255)
26
     */
27
    private $img;
28
29
    public function getId()
30
    {
31
        return $this->id;
32
    }
33
34
    public function getName(): ?string
35
    {
36
        return $this->name;
37
    }
38
39
    public function setName(string $name): self
40
    {
41
        $this->name = $name;
42
43
        return $this;
44
    }
45
    public function getImg(): ?string
46
    {
47
        return $this->img;
48
    }
49
50
    public function setImg(string $img): self
51
    {
52
        $this->img = $img;
53
54
        return $this;
55
    }
56
}
57