|
|
|
@@ -18,6 +18,9 @@ class Trip |
|
|
|
#[ORM\Column] |
|
|
|
private ?int $id = null; |
|
|
|
|
|
|
|
#[ORM\Column(length: 255, unique: true)] |
|
|
|
private ?string $pilotageReference = null; |
|
|
|
|
|
|
|
#[ORM\ManyToOne(targetEntity: Vessel::class, inversedBy: 'trips')] |
|
|
|
#[ORM\JoinColumn(nullable: false)] |
|
|
|
private Vessel $vessel; |
|
|
|
@@ -74,25 +77,25 @@ class Trip |
|
|
|
return $this->id; |
|
|
|
} |
|
|
|
|
|
|
|
public function getVessel(): Vessel |
|
|
|
public function getPilotageReference(): ?string |
|
|
|
{ |
|
|
|
return $this->vessel; |
|
|
|
return $this->pilotageReference; |
|
|
|
} |
|
|
|
|
|
|
|
public function setVessel(Vessel $vessel): self |
|
|
|
public function setPilotageReference(string $pilotageReference): void |
|
|
|
{ |
|
|
|
$this->vessel = $vessel; |
|
|
|
return $this; |
|
|
|
$this->pilotageReference = $pilotageReference; |
|
|
|
} |
|
|
|
|
|
|
|
public function getCustomerReference(): ?string |
|
|
|
public function getVessel(): Vessel |
|
|
|
{ |
|
|
|
return $this->customerReference; |
|
|
|
return $this->vessel; |
|
|
|
} |
|
|
|
|
|
|
|
public function setCustomerReference(?string $customerReference): void |
|
|
|
public function setVessel(Vessel $vessel): self |
|
|
|
{ |
|
|
|
$this->customerReference = $customerReference; |
|
|
|
$this->vessel = $vessel; |
|
|
|
return $this; |
|
|
|
} |
|
|
|
|
|
|
|
public function getStartLocation(): Location |
|
|
|
|