WIP: Implement even more stuff
This commit is contained in:
@@ -25,10 +25,13 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
#[ORM\Column(type: 'string', length: 36, unique: true)]
|
||||
private string $uuid;
|
||||
|
||||
#[ORM\Column(length: 64)]
|
||||
private ?string $busProCode = null;
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?int $destinationBusProId = null;
|
||||
|
||||
#[ORM\Column]
|
||||
#[ORM\ManyToOne]
|
||||
private ?JobProfile $jobProfile = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?int $available = null;
|
||||
|
||||
#[ORM\Column(type: Types::DATE_IMMUTABLE)]
|
||||
@@ -37,6 +40,12 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
#[ORM\Column(type: Types::DATE_IMMUTABLE)]
|
||||
private ?\DateTimeImmutable $dateTo = null;
|
||||
|
||||
#[ORM\Column(type: Types::DATE_IMMUTABLE)]
|
||||
private ?\DateTimeImmutable $pickupDate = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?int $pickup = null;
|
||||
|
||||
#[ORM\Column(type: Types::TEXT, nullable: true)]
|
||||
private ?string $benefits = null;
|
||||
|
||||
@@ -77,14 +86,26 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
return $this->uuid;
|
||||
}
|
||||
|
||||
public function getBusProCode(): ?string
|
||||
public function getDestinationBusProId(): ?int
|
||||
{
|
||||
return $this->busProCode;
|
||||
return $this->destinationBusProId;
|
||||
}
|
||||
|
||||
public function setBusProCode(string $busProCode): static
|
||||
public function setDestinationBusProId(?int $destinationBusProId): static
|
||||
{
|
||||
$this->busProCode = $busProCode;
|
||||
$this->destinationBusProId = $destinationBusProId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getJobProfile(): ?JobProfile
|
||||
{
|
||||
return $this->jobProfile;
|
||||
}
|
||||
|
||||
public function setJobProfile(?JobProfile $jobProfile): static
|
||||
{
|
||||
$this->jobProfile = $jobProfile;
|
||||
|
||||
return $this;
|
||||
}
|
||||
@@ -94,7 +115,7 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
return $this->available;
|
||||
}
|
||||
|
||||
public function setAvailable(int $available): static
|
||||
public function setAvailable(?int $available): static
|
||||
{
|
||||
$this->available = $available;
|
||||
|
||||
@@ -125,6 +146,30 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPickupDate(): ?\DateTimeImmutable
|
||||
{
|
||||
return $this->pickupDate;
|
||||
}
|
||||
|
||||
public function setPickupDate(?\DateTimeImmutable $pickupDate): static
|
||||
{
|
||||
$this->pickupDate = $pickupDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPickup(): ?int
|
||||
{
|
||||
return $this->pickup;
|
||||
}
|
||||
|
||||
public function setPickup(?int $pickup): static
|
||||
{
|
||||
$this->pickup = $pickup;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getBenefits(): ?string
|
||||
{
|
||||
return $this->benefits;
|
||||
|
||||
Reference in New Issue
Block a user