parent
f32e88b959
commit
9f183abd0e
@ -0,0 +1,102 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
namespace Chamilo\CoreBundle\Entity; |
||||
|
||||
use Chamilo\CoreBundle\Entity\Resource\AbstractResource; |
||||
use Chamilo\CoreBundle\Entity\Resource\ResourceInterface; |
||||
use Doctrine\ORM\Mapping as ORM; |
||||
use Gedmo\Timestampable\Traits\TimestampableEntity; |
||||
|
||||
/** |
||||
* Illustration. |
||||
* |
||||
* @ORM\Table(name="illustration") |
||||
* @ORM\Entity |
||||
*/ |
||||
class Illustration extends AbstractResource implements ResourceInterface |
||||
{ |
||||
use TimestampableEntity; |
||||
|
||||
/** |
||||
* @var int |
||||
* |
||||
* @ORM\Column(name="id", type="integer") |
||||
* @ORM\Id |
||||
* @ORM\GeneratedValue(strategy="AUTO") |
||||
*/ |
||||
protected $id; |
||||
|
||||
/** |
||||
* @var string |
||||
* |
||||
* @ORM\Column(name="name", type="string", length=255, nullable=false) |
||||
*/ |
||||
protected $name; |
||||
|
||||
/** |
||||
* @return int |
||||
*/ |
||||
public function getId(): int |
||||
{ |
||||
return $this->id; |
||||
} |
||||
|
||||
/** |
||||
* @param int $id |
||||
* |
||||
* @return Illustration |
||||
*/ |
||||
public function setId(int $id): Illustration |
||||
{ |
||||
$this->id = $id; |
||||
|
||||
return $this; |
||||
} |
||||
|
||||
/** |
||||
* @return string |
||||
*/ |
||||
public function getName(): string |
||||
{ |
||||
return $this->name; |
||||
} |
||||
|
||||
/** |
||||
* @param string $name |
||||
* |
||||
* @return Illustration |
||||
*/ |
||||
public function setName(string $name): Illustration |
||||
{ |
||||
$this->name = $name; |
||||
|
||||
return $this; |
||||
} |
||||
|
||||
/** |
||||
* Resource identifier. |
||||
* |
||||
* @return int |
||||
*/ |
||||
public function getResourceIdentifier(): int |
||||
{ |
||||
return $this->getId(); |
||||
} |
||||
|
||||
/** |
||||
* @return string |
||||
*/ |
||||
public function getResourceName(): string |
||||
{ |
||||
return $this->getName(); |
||||
} |
||||
|
||||
/** |
||||
* @return string |
||||
*/ |
||||
public function getToolName(): string |
||||
{ |
||||
return 'Illustration'; |
||||
} |
||||
} |
Loading…
Reference in new issue