src/Entity/ModuleTypeValue.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ModuleTypeValueRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassModuleTypeValueRepository::class)]
  6. class ModuleTypeValue
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $value;
  14.     #[ORM\ManyToOne(targetEntityAccountingFirm::class, inversedBy'moduleTypeValues')]
  15.     private $accountingFirm;
  16.     #[ORM\ManyToOne(targetEntityModuleType::class, inversedBy'moduleTypeValues')]
  17.     private $moduleType;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getValue(): ?string
  23.     {
  24.         return $this->value;
  25.     }
  26.     public function setValue(string $value): self
  27.     {
  28.         $this->value $value;
  29.         return $this;
  30.     }
  31.     public function getAccountingFirm(): ?AccountingFirm
  32.     {
  33.         return $this->accountingFirm;
  34.     }
  35.     public function setAccountingFirm(?AccountingFirm $accountingFirm): self
  36.     {
  37.         $this->accountingFirm $accountingFirm;
  38.         return $this;
  39.     }
  40.     public function getModuleType(): ?ModuleType
  41.     {
  42.         return $this->moduleType;
  43.     }
  44.     public function setModuleType(?ModuleType $moduleType): self
  45.     {
  46.         $this->moduleType $moduleType;
  47.         return $this;
  48.     }
  49. }