<?php
namespace App\Entity;
use App\Repository\PrimaryNewsRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PrimaryNewsRepository::class)]
class PrimaryNews
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\OneToOne(targetEntity: AccountingFirm::class, inversedBy: 'primaryNews', cascade: ['persist', 'remove'])]
#[ORM\JoinColumn(nullable: false)]
private $accountingFirm;
#[ORM\Column(type: 'text', nullable: true)]
private $description;
#[ORM\Column(type: 'boolean')]
private $website = true;
#[ORM\Column(type: 'datetime', nullable: true)]
private $endDateTime;
public function getId(): ?int
{
return $this->id;
}
public function getAccountingFirm(): ?AccountingFirm
{
return $this->accountingFirm;
}
public function setAccountingFirm(AccountingFirm $accountingFirm): self
{
$this->accountingFirm = $accountingFirm;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getWebsite(): ?bool
{
return $this->website;
}
public function setWebsite(bool $website): self
{
$this->website = $website;
return $this;
}
public function getEndDateTime(): ?\DateTimeInterface
{
return $this->endDateTime;
}
public function setEndDateTime(?\DateTimeInterface $endDateTime): self
{
$this->endDateTime = $endDateTime;
return $this;
}
}