<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Loggable\Entity\MappedSuperclass\AbstractLogEntry;
/**
* @ORM\Entity(repositoryClass="App\Repository\LogEntryRepository")
*/
class LogEntry extends AbstractLogEntry
{
/**
* Représente l'entité dans le BO
* @return string
*/
public function getLabel()
{
return $this->getId();
}
/**
* display type of entity
* @return string
*/
public function getShortClassName()
{
$parts = explode('\\', $this->getObjectClass());
return array_pop($parts);
}
}