for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?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;
/**
* PersonalFiles.
*
* @ORM\Table(name="personal_file")
* @ORM\Entity
*/
class PersonalFile 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;
* Illustration constructor.
public function __construct()
$this->name = 'personal_file';
}
public function getId(): int
return $this->id;
public function setId(int $id): PersonalFile
$this->id = $id;
return $this;
public function getName(): string
return (string) $this->name;
public function setName(string $name): PersonalFile
$this->name = $name;
* Resource identifier.
public function getResourceIdentifier(): int
return $this->getId();
public function getResourceName(): string
return $this->getName();
public function __toString(): string