src/Entity/Channel/Channel.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Channel;
  3. use App\Entity\Account\User;
  4. use App\Repository\Channel\ChannelRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Nellapp\Bundle\SDKBundle\Channel\Entity\ChannelInterface;
  7. use Nellapp\Bundle\SDKBundle\Channel\Entity\ChannelMethodTrait;
  8. use Nellapp\Bundle\SDKBundle\Channel\Entity\ChannelPropertyTrait;
  9. use Symfony\Component\Serializer\Annotation as Serial;
  10. #[ORM\Entity(repositoryClassChannelRepository::class)]
  11. #[ORM\Table(name'channel_channels')]
  12. class Channel implements ChannelInterface
  13. {
  14.     use ChannelMethodTrait;
  15.     use ChannelPropertyTrait;
  16.     #[ORM\IdORM\Column(type'string'length36)]
  17.     #[Serial\Groups(['GlobalJSVariable''Channel'])]
  18.     private ?string $id null;
  19.     #[ORM\Column(type'string')]
  20.     #[Serial\Groups(['GlobalJSVariable''Channel'])]
  21.     private ?string $name null;
  22.     #[ORM\Column(type'string'nullabletrue)]
  23.     #[Serial\Groups(['Channel''GlobalJSVariable'])]
  24.     private ?string $imagePath null;
  25.     #[ORM\Column(type'boolean'nullablefalseoptions: ['default' => false])]
  26.     private bool $paymentAlert false;
  27.     #[ORM\ManyToOne(targetEntityUser::class)]
  28.     private ?User $owner null;
  29.     #[ORM\Column(type'boolean'nullablefalseoptions: ['default' => false])]
  30.     private bool $enabledIndexing false;
  31.     #[ORM\Column(type'boolean'nullablefalseoptions: ['default' => false])]
  32.     private bool $enabledChatBot false;
  33. }