src/Entity/Projectdata.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjectdataRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Serializer\Annotation\Groups;
  7. #[ORM\Entity(repositoryClass: ProjectdataRepository::class)]
  8. class Projectdata
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type: 'integer', nullable: false)]
  13.     #[Groups(["projectdata"])]
  14.     private $id;
  15.     #[ORM\Column(type: 'integer', nullable: false)]
  16.     #[Groups(["projectdata"])]
  17.     private $project_id;
  18.     #[ORM\Column(type: Types::TEXT, nullable: true)]
  19.     #[Groups(["projectdata"])]
  20.     private $idataselected = null;
  21.     #[ORM\Column(type: Types::TEXT, nullable: true)]
  22.     #[Groups(["projectdata"])]
  23.     private $iselected = null;
  24.     #[ORM\Column(type: Types::TEXT, nullable: true)]
  25.     #[Groups(["projectdata"])]
  26.     private $iactive = null;
  27.     #[ORM\Column(type: Types::TEXT, nullable: true)]
  28.     #[Groups(["projectdata"])]
  29.     private $irank = null;
  30.     #[ORM\Column(type: Types::TEXT, nullable: true)]
  31.     #[Groups(["projectdata"])]
  32.     private $ikpifilter = null;
  33.     // #[ORM\OneToOne(inversedBy: 'projectData', cascade: ['remove'])]
  34.     // private ?Project $project = null;
  35.     #[ORM\OneToOne(inversedBy: 'projectdata', orphanRemoval: true)]
  36.     #[Groups(["projectdata"])]
  37.     private ?Project $project = null;
  38.     #[ORM\Column(type: Types::TEXT, nullable: true)]
  39.     #[Groups(["projectdata"])]
  40.     private ?string $icompose = null;
  41.     #[ORM\Column(type: Types::TEXT, nullable: true)]
  42.     #[Groups(["projectdata"])]
  43.     private ?string $ipoligon = null;
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getProjectId(): ?string
  49.     {
  50.         return $this->project_id;
  51.     }
  52.     public function setProjectId(?string $project_id): static
  53.     {
  54.         $this->project_id = $project_id;
  55.         return $this;
  56.     }
  57.     public function getIdataselected(): ?string
  58.     {
  59.         return $this->idataselected;
  60.     }
  61.     public function setIdataselected(?string $idataselected): static
  62.     {
  63.         $this->idataselected = $idataselected;
  64.         return $this;
  65.     }
  66.     public function getIselected(): ?string
  67.     {
  68.         return $this->iselected;
  69.     }
  70.     public function setIselected(?string $iselected): static
  71.     {
  72.         $this->iselected = $iselected;
  73.         return $this;
  74.     }
  75.     public function getIactive(): ?string
  76.     {
  77.         return $this->iactive;
  78.     }
  79.     public function setIactive(?string $iactive): static
  80.     {
  81.         $this->iactive = $iactive;
  82.         return $this;
  83.     }
  84.     public function getIrank(): ?string
  85.     {
  86.         return $this->irank;
  87.     }
  88.     public function setIrank(?string $irank): static
  89.     {
  90.         $this->irank = $irank;
  91.         return $this;
  92.     }
  93.     public function getIkpifilter(): ?string
  94.     {
  95.         return $this->ikpifilter;
  96.     }
  97.     public function setIkpifilter(?string $ikpifilter): static
  98.     {
  99.         $this->ikpifilter = $ikpifilter;
  100.         return $this;
  101.     }
  102.     public function getProject(): ?Project
  103.     {
  104.         return $this->project;
  105.     }
  106.     public function setProject(?Project $project): static
  107.     {
  108.         // unset the owning side of the relation if necessary
  109.         if ($project === null && $this->project !== null) {
  110.             $this->project->setProjectdata(null);
  111.         }
  112.         // set the owning side of the relation if necessary
  113.         if ($project !== null && $project->getProjectdata() !== $this) {
  114.             $project->setProjectdata($this);
  115.         }
  116.         $this->project = $project;
  117.         return $this;
  118.     }
  119.     public function getIcompose(): ?string
  120.     {
  121.         return $this->icompose;
  122.     }
  123.     public function setIcompose(?string $icompose): static
  124.     {
  125.         $this->icompose = $icompose;
  126.         return $this;
  127.     }
  128.     public function getIpoligon(): ?string
  129.     {
  130.         return $this->ipoligon;
  131.     }
  132.     public function setIpoligon(?string $ipoligon): static
  133.     {
  134.         $this->ipoligon = $ipoligon;
  135.         return $this;
  136.     }
  137. }