<?phpnamespace App\Entity\ModuleTest;use App\Entity\ModuleFamily;use Doctrine\ORM\Mapping as ORM;use EightMarq\CoreComponent\Entity\BaseEntity;use Symfony\Component\Validator\Constraints as Assert;/** * @ORM\Table(name="input_phases") * @ORM\Entity() */class InputPhase extends BaseEntity{ /** * @var string | null * * @ORM\Column(type="string", nullable=true) */ protected $type; /** * @var string | null * * @ORM\Column(type="text") * * @Assert\NotBlank() */ protected $justification; /** * @var string | null * * @ORM\Column(type="string", nullable=true) */ protected $mainCustomer; /** * @var string | null * * @ORM\Column(type="string", nullable=true) */ protected $materials; /** * @var ModuleFamily | null * * @ORM\ManyToOne(targetEntity="App\Entity\ModuleFamily", cascade={"persist"})) */ protected $moduleFamily; /** * @var ModuleTest | null * * @ORM\OneToOne(targetEntity="App\Entity\ModuleTest\ModuleTest", inversedBy="inputPhase") * @ORM\JoinColumn(nullable=false) * * @Assert\NotBlank() */ protected $moduleTest; /** * @return string|null */ public function __toString() { return $this->getType() ?? ''; } /** * @return string|null */ public function getType(): ?string { return $this->type; } /** * @param string|null $type */ public function setType(?string $type): void { $this->type = $type; } /** * @return string|null */ public function getJustification(): ?string { return $this->justification; } /** * @param string|null $justification */ public function setJustification(?string $justification): void { $this->justification = $justification; } /** * @return string|null */ public function getMainCustomer(): ?string { return $this->mainCustomer; } /** * @param string|null $mainCustomer */ public function setMainCustomer(?string $mainCustomer): void { $this->mainCustomer = $mainCustomer; } /** * @return string|null */ public function getMaterials(): ?string { return $this->materials; } /** * @param string|null $materials */ public function setMaterials(?string $materials): void { $this->materials = $materials; } /** * @return ModuleFamily|null */ public function getModuleFamily(): ?ModuleFamily { return $this->moduleFamily; } /** * @param $moduleFamily */ public function setModuleFamily($moduleFamily): void { $this->moduleFamily = $moduleFamily; } /** * @return ModuleTest|int|null */ public function getModuleTest() { return $this->moduleTest; } /** * @param ModuleTest|int|null $moduleTest */ public function setModuleTest($moduleTest): void { $this->moduleTest = $moduleTest; }}