<?phpnamespace App\Entity\ModuleTest;use App\Entity\Manufacturer;use App\Entity\TestType;use Doctrine\ORM\Mapping as ORM;use EightMarq\CoreComponent\Entity\BaseEntity;use Symfony\Component\Validator\Constraints as Assert;/** * @ORM\Table(name="feasibility_check_phases") * @ORM\Entity() */class FeasibilityCheckPhase extends BaseEntity{ /** * @var TestType | null * * @ORM\ManyToOne(targetEntity="App\Entity\TestType", cascade={"persist"})) */ protected $testType; /** * @var int | null * * @ORM\Column(type="integer", nullable=true) * * @Assert\GreaterThanOrEqual(value="1") */ protected $round = 1; /** * @var string | null * * @ORM\Column(type="text", nullable=true) */ protected $limitations; /** * @var Manufacturer | null * * @ORM\ManyToOne(targetEntity="App\Entity\Manufacturer", cascade={"persist"})) */ protected $manufacturer; /** * @var ModuleTest | null * * @ORM\OneToOne(targetEntity="App\Entity\ModuleTest\ModuleTest", inversedBy="feasibilityCheckPhase") * @ORM\JoinColumn(nullable=false) * * @Assert\NotBlank() */ protected $moduleTest; /** * @return TestType|null */ public function getTestType(): ?TestType { return $this->testType; } /** * @param TestType|null $testType */ public function setTestType(?TestType $testType): void { $this->testType = $testType; } /** * @return int|null */ public function getRound(): ?int { return $this->round; } /** * @param int|null $round */ public function setRound(?int $round): void { $this->round = $round; } /** * @return string|null */ public function getLimitations(): ?string { return $this->limitations; } /** * @param string|null $limitations */ public function setLimitations(?string $limitations): void { $this->limitations = $limitations; } /** * @return Manufacturer|null */ public function getManufacturer(): ?Manufacturer { return $this->manufacturer; } /** * @param $manufacturer */ public function setManufacturer($manufacturer): void { $this->manufacturer = $manufacturer; } /** * @return ModuleTest|int|null */ public function getModuleTest() { return $this->moduleTest; } /** * @param ModuleTest|int|null $moduleTest */ public function setModuleTest($moduleTest): void { $this->moduleTest = $moduleTest; }}