src/App/Entity/Content/Exhibits/Gallery/GalleryObject.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Content\Exhibits\Gallery;
  3. use App\Entity\Content\AbstractObject;
  4. use App\Entity\Content\Exhibits\GalleryInterface;
  5. use App\Entity\Content\Exhibits\GalleryTrait;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Component\Serializer\Annotation\Groups;
  8. /**
  9.  * @ORM\Entity(
  10.  *     repositoryClass = "App\Doctrine\Repository\Content\Exhibits\Gallery\GalleryObjectRepository",
  11.  * )
  12.  */
  13. class GalleryObject extends AbstractObject implements GalleryInterface
  14. {
  15.     const DISCR 'exhibits.gallery';
  16.     const CLASSES__ALTERATION GalleryAlteration::class;
  17.     const ROUTING_SLUG 'gallery';
  18.     use GalleryTrait;
  19.     /**
  20.      * {@inheritDoc}
  21.      */
  22.     public function __toString(): string
  23.     {
  24.         return $this->getHeadline();
  25.     }
  26. }