Completed
Pull Request — master (#433)
by Paul
11:06 queued 04:27
created

SpaceShipTranslation   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 4
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 53
rs 10

4 Methods

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