Passed
Push — master ( 77d6c9...732152 )
by Florian
03:45
created

Semester   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 25
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A setName() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the feedback project.
5
 *
6
 * (c) Florian Moser <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace App\Entity;
13
14
use App\Entity\Base\BaseEntity;
15
use App\Entity\Traits\IdTrait;
16
17
class Semester extends BaseEntity
18
{
19
    use IdTrait;
20
21
    /**
22
     * @var string
23
     *
24
     * @ORM\Column(type="text")
25
     */
26
    private $name;
27
28
    /**
29
     * @return string
30
     */
31
    public function getName(): string
32
    {
33
        return $this->name;
34
    }
35
36
    /**
37
     * @param string $name
38
     */
39
    public function setName(string $name): void
40
    {
41
        $this->name = $name;
42
    }
43
}
44