src/Entity/Website/Sms/SmsIncome.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Website\Sms;
  3. use App\Entity\BaseEntity;
  4. use App\Entity\Generic\Customer\Customer;
  5. use App\Entity\Generic\User;
  6. use App\Entity\Website\Website\Website;
  7. use App\Repository\Website\Sms\SmsIncomeRepository;
  8. use Doctrine\DBAL\Types\Types;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  11. #[ORM\Entity(repositoryClassSmsIncomeRepository::class)]
  12. class SmsIncome extends BaseEntity
  13. {
  14.     #[ORM\Id]
  15.     #[ORM\Column(type'guid'uniquetrue)]
  16.     #[ORM\GeneratedValue(strategy'CUSTOM')]
  17.     #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
  18.     private ?string $id null;
  19.     #[ORM\Column(typeTypes::BIGINTuniquetrue)]
  20.     private ?string $price null;
  21.     #[ORM\Column]
  22.     private ?bool $isVerified null;
  23.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  24.     private ?string $smsText null;
  25.     #[ORM\Columnnullabletrue)]
  26.     private ?\DateTimeImmutable $verifiedAt null;
  27.     #[ORM\ManyToOne(inversedBy'smsIncomes')]
  28.     #[ORM\JoinColumn(nullablefalse)]
  29.     private ?Customer $owner null;
  30.     #[ORM\ManyToOne(inversedBy'smsIncomes')]
  31.     #[ORM\JoinColumn(nullablefalse)]
  32.     private ?Website $website null;
  33.     public function getId(): ?string
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getPrice(): ?string
  38.     {
  39.         return $this->price;
  40.     }
  41.     public function setPrice(string $price): static
  42.     {
  43.         $this->price $price;
  44.         return $this;
  45.     }
  46.     public function isIsVerified(): ?bool
  47.     {
  48.         return $this->isVerified;
  49.     }
  50.     public function setIsVerified(bool $isVerified): static
  51.     {
  52.         $this->isVerified $isVerified;
  53.         return $this;
  54.     }
  55.     public function getSmsText(): ?string
  56.     {
  57.         return $this->smsText;
  58.     }
  59.     public function setSmsText(?string $smsText): static
  60.     {
  61.         $this->smsText $smsText;
  62.         return $this;
  63.     }
  64.     public function getVerifiedAt(): ?\DateTimeImmutable
  65.     {
  66.         return $this->verifiedAt;
  67.     }
  68.     public function setVerifiedAt(\DateTimeImmutable $verifiedAt): static
  69.     {
  70.         $this->verifiedAt $verifiedAt;
  71.         return $this;
  72.     }
  73.     public function getOwner(): ?Customer
  74.     {
  75.         return $this->owner;
  76.     }
  77.     public function setOwner(?Customer $owner): static
  78.     {
  79.         $this->owner $owner;
  80.         return $this;
  81.     }
  82.     public function getWebsite(): ?Website
  83.     {
  84.         return $this->website;
  85.     }
  86.     public function setWebsite(?Website $website): static
  87.     {
  88.         $this->website $website;
  89.         return $this;
  90.     }
  91. }