src/Entity/ProductDashboard.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProductDashboardRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassProductDashboardRepository::class)]
  6. class ProductDashboard
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\OneToOne(mappedBy'productDashboard'targetEntityProduct::class)]
  13.     protected Product $product;
  14.     #[ORM\Column(length9nullabletrue)]
  15.     private ?string $last_version null;
  16.     #[ORM\Column(nullabletrue)]
  17.     private ?bool $is_new_version null;
  18.     #[ORM\Column]
  19.     private ?bool $is_edit null;
  20.     #[ORM\Column]
  21.     private ?bool $is_overview null;
  22.     #[ORM\Column]
  23.     private ?bool $is_git_update null;
  24.     #[ORM\Column]
  25.     private ?bool $is_download null;
  26.     #[ORM\Column(length64nullabletrue)]
  27.     private ?string $git_version null;
  28.     #[ORM\Column(nullabletrueoptions: ['default' => false])]
  29.     private ?bool $is_standalone null;
  30.     /**
  31.      * @return Product
  32.      */
  33.     public function getProduct(): Product
  34.     {
  35.         return $this->product;
  36.     }
  37.     /**
  38.      * @param Product $product
  39.      */
  40.     public function setProduct(Product $product): void
  41.     {
  42.         $this->product $product;
  43.     }
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getLastVersion(): ?string
  49.     {
  50.         return $this->last_version;
  51.     }
  52.     public function setLastVersion(?string $last_version): self
  53.     {
  54.         $this->last_version $last_version;
  55.         return $this;
  56.     }
  57.     public function isIsNewVersion(): ?bool
  58.     {
  59.         return $this->is_new_version;
  60.     }
  61.     public function setIsNewVersion(?bool $is_new_version): self
  62.     {
  63.         $this->is_new_version $is_new_version;
  64.         return $this;
  65.     }
  66.     public function isIsEdit(): ?bool
  67.     {
  68.         return $this->is_edit;
  69.     }
  70.     public function setIsEdit(bool $is_edit): self
  71.     {
  72.         $this->is_edit $is_edit;
  73.         return $this;
  74.     }
  75.     public function isIsOverview(): ?bool
  76.     {
  77.         return $this->is_overview;
  78.     }
  79.     public function setIsOverview(bool $is_overview): self
  80.     {
  81.         $this->is_overview $is_overview;
  82.         return $this;
  83.     }
  84.     public function isIsGitUpdate(): ?bool
  85.     {
  86.         return $this->is_git_update;
  87.     }
  88.     public function setIsGitUpdate(bool $is_git_update): self
  89.     {
  90.         $this->is_git_update $is_git_update;
  91.         return $this;
  92.     }
  93.     public function isIsDownload(): ?bool
  94.     {
  95.         return $this->is_download;
  96.     }
  97.     public function setIsDownload(bool $is_download): self
  98.     {
  99.         $this->is_download $is_download;
  100.         return $this;
  101.     }
  102.     public function isStandalone(): ?bool
  103.     {
  104.         return $this->is_standalone;
  105.     }
  106.     public function setIsStandalone(bool $is_download): self
  107.     {
  108.         $this->is_download $is_download;
  109.         return $this;
  110.     }
  111.     public function getGitVersion(): ?string
  112.     {
  113.         return $this->git_version;
  114.     }
  115.     public function setGitVersion(?string $git_version): self
  116.     {
  117.         $this->git_version $git_version;
  118.         return $this;
  119.     }
  120. }