src/Entity/SmsClientListNumber.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SmsClientListNumberRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassSmsClientListNumberRepository::class)]
  6. class SmsClientListNumber
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255nullabletrue)]
  13.     private $firstname;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $lastname;
  16.     #[ORM\Column(type'string'length255)]
  17.     private $number;
  18.     #[ORM\ManyToOne(targetEntitySmsClientList::class, cascade: ['persist'], inversedBy'smsClientListNumbers')]
  19.     private $smsClientList;
  20.     #[ORM\Column(type'datetime_immutable')]
  21.     private $createdAt;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getFirstname(): ?string
  27.     {
  28.         return $this->firstname;
  29.     }
  30.     
  31.     public function setFirstname(string $firstname): self
  32.     {
  33.         $this->firstname $firstname;
  34.         return $this;
  35.     }
  36.     
  37.     public function getLastname(): ?string
  38.     {
  39.         return $this->lastname;
  40.     }
  41.     public function setLastname(string $lastname): self
  42.     {
  43.         $this->lastname $lastname;
  44.         return $this;
  45.     }
  46.     public function getNumber(): ?string
  47.     {
  48.         return $this->number;
  49.     }
  50.     public function setNumber(string $number): self
  51.     {
  52.         $this->number $number;
  53.         return $this;
  54.     }
  55.     public function getSmsClientList(): ?SmsClientList
  56.     {
  57.         return $this->smsClientList;
  58.     }
  59.     public function setSmsClientList(?SmsClientList $smsClientList): self
  60.     {
  61.         $this->smsClientList $smsClientList;
  62.         return $this;
  63.     }
  64.     public function getCreatedAt(): ?\DateTimeImmutable
  65.     {
  66.         return $this->createdAt;
  67.     }
  68.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  69.     {
  70.         $this->createdAt $createdAt;
  71.         return $this;
  72.     }
  73. }