src/Domain/Entity/NotificationChannel.php line 13

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Domain\Entity;
  4. use App\Domain\Entity\Behavior\Identifiable;
  5. /**
  6.  * Class NotificationChannel
  7.  * @package App\Domain\Entity
  8.  */
  9. class NotificationChannel
  10. {
  11.     use Identifiable;
  12.     public const CHANNEL_EMAIL 'email';
  13.     public string $identifier;
  14.     public bool $enabled;
  15.     /**
  16.      * @return string
  17.      */
  18.     public function __toString(): string
  19.     {
  20.         return $this->identifier ?? '';
  21.     }
  22. }