<?php
namespace App\Entity\Content\Alerts\Alert;
use App\Entity\Content\AbstractObject;
use App\Entity\Content\Alerts\AlertInterface;
use App\Entity\Content\Alerts\AlertTrait;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity(
* repositoryClass = "App\Doctrine\Repository\Content\Alerts\Alert\AlertObjectRepository",
* )
*/
class AlertObject extends AbstractObject implements AlertInterface
{
const DISCR = 'alerts.alert';
const CLASSES__ALTERATION = AlertAlteration::class;
use AlertTrait;
/**
* {@inheritDoc}
*/
public function __toString(): string
{
return $this->getHeadline();
}
}