<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Embeddable]
final class Messengers
{
#[ORM\Column(name: 'messengers_telegram', type: 'boolean', nullable: true)]
protected ?bool $telegram;
#[ORM\Column(name: 'messengers_whatsapp', type: 'integer', nullable: true)]
protected ?bool $whatsApp;
public function __construct(?bool $telegram, ?bool $whatsApp)
{
$this->telegram = $telegram;
$this->whatsApp = $whatsApp;
}
public function hasTelegram(): ?bool
{
return $this->telegram;
}
public function hasWhatsApp(): ?bool
{
return $this->whatsApp;
}
}