<?phpdeclare(strict_types=1);namespace Croisiland\CommonBundle\Entity\Correspondence;use Crea\ParameterBundle\Entity\Parameter;use Crea\ToolsBundle\Entity\LifecycleUserIdentifierTrait;use Croisiland\CommonBundle\Annotation\Correspondence\StopoverCorrespondenceFormValidator;use Croisiland\CommonBundle\Entity\Company\Company;use Croisiland\CommonBundle\Entity\Itinerary\Stopover;use Croisiland\CommonBundle\Repository\Correspondence\StopoverCorrespondenceRepository;use Doctrine\ORM\Mapping as ORM;/** * @StopoverCorrespondenceFormValidator(groups="stopover_correspondence_form_validator") * * @ORM\Entity(repositoryClass=StopoverCorrespondenceRepository::class) */class StopoverCorrespondence{ use LifecycleUserIdentifierTrait; /** * @ORM\Id * * @ORM\GeneratedValue * * @ORM\Column(type="integer") */ private ?int $id = null; /** * @ORM\Column(type="string", length=255, nullable=false) */ private string $name; /** * @ORM\Column(type="string", length=255, nullable=true) */ private string $countryCode; /** * @ORM\Column(type="string", length=255, nullable=false) */ private string $code; /** * @ORM\ManyToOne(targetEntity=Stopover::class, inversedBy="stopoverCorrespondences") */ private ?Stopover $stopover = null; /** * @ORM\ManyToOne(targetEntity=Company::class) * * @ORM\JoinColumn(nullable=false) */ private ?Company $originCompany; /** * @ORM\ManyToOne(targetEntity=Parameter::class) * * @ORM\JoinColumn(nullable=true) */ private ?Parameter $relationOrigin = null; public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(?string $name): self { $this->name = $name; return $this; } public function getCountryCode(): ?string { return $this->countryCode; } public function setCountryCode(?string $countryCode): self { $this->countryCode = $countryCode; return $this; } public function getCode(): ?string { return $this->code; } public function setCode(?string $code): self { $this->code = $code; return $this; } public function getStopover(): ?Stopover { return $this->stopover; } public function setStopover(?Stopover $stopover): self { $this->stopover = $stopover; return $this; } public function getOriginCompany(): ?Company { return $this->originCompany; } public function setOriginCompany(?Company $originCompany): self { $this->originCompany = $originCompany; return $this; } public function getRelationOrigin(): ?Parameter { return $this->relationOrigin; } public function setRelationOrigin(?Parameter $relationOrigin): StopoverCorrespondence { $this->relationOrigin = $relationOrigin; return $this; }}