Passed
Push — master ( 323135...9f183a )
by Julito
13:17
created

Illustration::getToolName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nop 0
dl 0
loc 3
rs 10
nc 1
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CoreBundle\Entity;
5
6
use Chamilo\CoreBundle\Entity\Resource\AbstractResource;
7
use Chamilo\CoreBundle\Entity\Resource\ResourceInterface;
8
use Doctrine\ORM\Mapping as ORM;
9
use Gedmo\Timestampable\Traits\TimestampableEntity;
10
11
/**
12
 * Illustration.
13
 *
14
 * @ORM\Table(name="illustration")
15
 * @ORM\Entity
16
 */
17
class Illustration extends AbstractResource implements ResourceInterface
18
{
19
    use TimestampableEntity;
20
21
    /**
22
     * @var int
23
     *
24
     * @ORM\Column(name="id", type="integer")
25
     * @ORM\Id
26
     * @ORM\GeneratedValue(strategy="AUTO")
27
     */
28
    protected $id;
29
30
    /**
31
     * @var string
32
     *
33
     * @ORM\Column(name="name", type="string", length=255, nullable=false)
34
     */
35
    protected $name;
36
37
    /**
38
     * @return int
39
     */
40
    public function getId(): int
41
    {
42
        return $this->id;
43
    }
44
45
    /**
46
     * @param int $id
47
     *
48
     * @return Illustration
49
     */
50
    public function setId(int $id): Illustration
51
    {
52
        $this->id = $id;
53
54
        return $this;
55
    }
56
57
    /**
58
     * @return string
59
     */
60
    public function getName(): string
61
    {
62
        return $this->name;
63
    }
64
65
    /**
66
     * @param string $name
67
     *
68
     * @return Illustration
69
     */
70
    public function setName(string $name): Illustration
71
    {
72
        $this->name = $name;
73
74
        return $this;
75
    }
76
77
    /**
78
     * Resource identifier.
79
     *
80
     * @return int
81
     */
82
    public function getResourceIdentifier(): int
83
    {
84
        return $this->getId();
85
    }
86
87
    /**
88
     * @return string
89
     */
90
    public function getResourceName(): string
91
    {
92
        return $this->getName();
93
    }
94
95
    /**
96
     * @return string
97
     */
98
    public function getToolName(): string
99
    {
100
        return 'Illustration';
101
    }
102
}
103