<?php
namespace App\Entity;
use App\Repository\SmsClientListNumberRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: SmsClientListNumberRepository::class)]
class SmsClientListNumber
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $firstname;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $lastname;
#[ORM\Column(type: 'string', length: 255)]
private $number;
#[ORM\ManyToOne(targetEntity: SmsClientList::class, cascade: ['persist'], inversedBy: 'smsClientListNumbers')]
private $smsClientList;
#[ORM\Column(type: 'datetime_immutable')]
private $createdAt;
public function getId(): ?int
{
return $this->id;
}
public function getFirstname(): ?string
{
return $this->firstname;
}
public function setFirstname(string $firstname): self
{
$this->firstname = $firstname;
return $this;
}
public function getLastname(): ?string
{
return $this->lastname;
}
public function setLastname(string $lastname): self
{
$this->lastname = $lastname;
return $this;
}
public function getNumber(): ?string
{
return $this->number;
}
public function setNumber(string $number): self
{
$this->number = $number;
return $this;
}
public function getSmsClientList(): ?SmsClientList
{
return $this->smsClientList;
}
public function setSmsClientList(?SmsClientList $smsClientList): self
{
$this->smsClientList = $smsClientList;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeImmutable $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
}