src/Entity/PrimaryNews.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PrimaryNewsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassPrimaryNewsRepository::class)]
  6. class PrimaryNews
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\OneToOne(targetEntityAccountingFirm::class, inversedBy'primaryNews'cascade: ['persist''remove'])]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private $accountingFirm;
  15.     #[ORM\Column(type'text'nullabletrue)]
  16.     private $description;
  17.     #[ORM\Column(type'boolean')]
  18.     private $website true;
  19.     #[ORM\Column(type'datetime'nullabletrue)]
  20.     private $endDateTime;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getAccountingFirm(): ?AccountingFirm
  26.     {
  27.         return $this->accountingFirm;
  28.     }
  29.     public function setAccountingFirm(AccountingFirm $accountingFirm): self
  30.     {
  31.         $this->accountingFirm $accountingFirm;
  32.         return $this;
  33.     }
  34.     public function getDescription(): ?string
  35.     {
  36.         return $this->description;
  37.     }
  38.     public function setDescription(?string $description): self
  39.     {
  40.         $this->description $description;
  41.         return $this;
  42.     }
  43.     public function getWebsite(): ?bool
  44.     {
  45.         return $this->website;
  46.     }
  47.     public function setWebsite(bool $website): self
  48.     {
  49.         $this->website $website;
  50.         return $this;
  51.     }
  52.     public function getEndDateTime(): ?\DateTimeInterface
  53.     {
  54.         return $this->endDateTime;
  55.     }
  56.     public function setEndDateTime(?\DateTimeInterface $endDateTime): self
  57.     {
  58.         $this->endDateTime $endDateTime;
  59.         return $this;
  60.     }
  61. }