Completed
Push — master ( 5d51b4...87fdd9 )
by Paul
10s
created

SpaceShipTranslation::getSlug()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Acme\AppBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Gedmo\Mapping\Annotation as Gedmo;
7
use Knp\DoctrineBehaviors\Model\Translatable\Translation;
8
9
/**
10
 * SpaceShipTranslation.
11
 *
12
 * @ORM\Entity
13
 * @ORM\Table("space_ship_translation")
14
 */
15
class SpaceShipTranslation
16
{
17
    use Translation;
18
19
    /**
20
     * @var string
21
     *
22
     * @ORM\Column(name="name", type="string", length=55)
23
     */
24
    protected $name;
25
26
    /**
27
     * @var string
28
     *
29
     * @Gedmo\Slug(handlers={
30
     *     @Gedmo\SlugHandler(class="Victoire\Bundle\BusinessEntityBundle\Handler\TwigSlugHandler"
31
     * )},fields={"name"}, updatable=false, unique=false)
32
     * @ORM\Column(name="slug", type="string", length=255)
33
     */
34
    protected $slug;
35
36
    /**
37
     * @return string
38
     */
39
    public function getName()
40
    {
41
        return $this->name;
42
    }
43
44
    /**
45
     * @param string $name
46
     */
47
    public function setName($name)
48
    {
49
        $this->name = $name;
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function getSlug()
56
    {
57
        return $this->slug;
58
    }
59
60
    /**
61
     * @param string $slug
62
     */
63
    public function setSlug($slug)
64
    {
65
        $this->slug = $slug;
66
    }
67
}
68