Test Setup Failed
Push — master ( a515d0...24a3ce )
by Raí
07:35 queued 02:54
created

Rota::setNome()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace LaravelSeed\Entities;
4
5
use Bludata\Doctrine\Common\Annotations as BdAnnotations;
6
use Bludata\Doctrine\ORM\Entities\BaseEntity;
7
use Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * @ORM\Entity(repositoryClass="LaravelSeed\Repositories\RotaRepository")
11
 * @ORM\Table(name="Rota")
12
 */
13
class Rota extends BaseEntity
14
{
15
    /**
16
     * @ORM\Column(type="string", name="nome")
17
     * BdAnnotations\ToArray
18
     * BdAnnotations\RulePersist
19
     */
20
    protected $nome;
21
22
    /**
23
     * @ORM\Column(type="string", name="alias", unique=true)
24
     * BdAnnotations\ToArray
25
     * BdAnnotations\RulePersist
26
     */
27
    protected $alias;
28
29
    public function getNome()
30
    {
31
        return $this->nome;
32
    }
33
34
    public function setNome($nome)
35
    {
36
        $this->nome = $nome;
37
38
        return $this;
39
    }
40
41
    public function getAlias()
42
    {
43
        return $this->alias;
44
    }
45
46
    public function setAlias($alias)
47
    {
48
        $this->alias = $alias;
49
50
        return $this;
51
    }
52
}
53