src/App/Entity/Content/Alerts/Alert/AlertObject.php line 16

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