src/Entity/LogEntry.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Loggable\Entity\MappedSuperclass\AbstractLogEntry;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\LogEntryRepository")
  7.  */
  8. class LogEntry extends AbstractLogEntry
  9. {
  10.     /**
  11.      * Représente l'entité dans le BO
  12.      * @return string
  13.      */
  14.     public function getLabel()
  15.     {
  16.         return $this->getId();
  17.     }
  18.     /**
  19.      * display type of entity
  20.      * @return string
  21.      */
  22.     public function getShortClassName()
  23.     {
  24.         $parts explode('\\'$this->getObjectClass());
  25.         return array_pop($parts);
  26.     }
  27. }