src/Entity/CRM/AccountingOfficeCategory.php line 11

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Entity\CRM\Order;
  4. use App\Repository\AccountingOfficeCategoryRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassAccountingOfficeCategoryRepository::class)]
  8. class AccountingOfficeCategory
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\ManyToOne(inversedBy'accountingOfficeCategories')]
  15.     #[ORM\JoinColumn(nullablefalse)]
  16.     private ?AccountingOfficeCategoryType $categoryType null;
  17.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  18.     private ?\DateTimeInterface $dateAdded null;
  19.     #[ORM\ManyToOne(inversedBy'accountingOfficeCategories')]
  20.     private ?Order $orderInstance null;
  21.     #[ORM\Column]
  22.     private ?bool $active null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getCategoryType(): ?AccountingOfficeCategoryType
  28.     {
  29.         return $this->categoryType;
  30.     }
  31.     public function setCategoryType(?AccountingOfficeCategoryType $categoryType): static
  32.     {
  33.         $this->categoryType $categoryType;
  34.         return $this;
  35.     }
  36.     public function getDateAdded(): ?\DateTimeInterface
  37.     {
  38.         return $this->dateAdded;
  39.     }
  40.     public function setDateAdded(\DateTimeInterface $dateAdded): static
  41.     {
  42.         $this->dateAdded $dateAdded;
  43.         return $this;
  44.     }
  45.     public function getOrderInstance(): ?Order
  46.     {
  47.         return $this->orderInstance;
  48.     }
  49.     public function setOrderInstance(?Order $orderInstance): static
  50.     {
  51.         $this->orderInstance $orderInstance;
  52.         return $this;
  53.     }
  54.     public function isActive(): ?bool
  55.     {
  56.         return $this->active;
  57.     }
  58.     public function setActive(bool $active): static
  59.     {
  60.         $this->active $active;
  61.         return $this;
  62.     }
  63. }