WIP: Implement application process
This commit is contained in:
@@ -24,17 +24,26 @@ class Disposition implements BlameableEntityInterface, TimestampableEntityInterf
|
||||
private string $uuid;
|
||||
|
||||
#[ORM\ManyToOne(inversedBy: 'dispositions')]
|
||||
private ?Assignment $assignment = null;
|
||||
private ?Assignment $assignment;
|
||||
|
||||
#[ORM\ManyToOne(inversedBy: 'dispositions')]
|
||||
private ?Teamer $teamer = null;
|
||||
private ?Teamer $teamer;
|
||||
|
||||
#[ORM\Column(type: Types::TEXT, nullable: true)]
|
||||
private ?string $remarks = null;
|
||||
private ?string $remarks;
|
||||
|
||||
public function __construct()
|
||||
#[ORM\OneToOne(cascade: ['persist', 'remove'])]
|
||||
private ?Upload $contractPdf = null;
|
||||
|
||||
#[ORM\OneToOne(cascade: ['persist', 'remove'])]
|
||||
private ?Upload $invoicePdf = null;
|
||||
|
||||
public function __construct(Application $application)
|
||||
{
|
||||
$this->uuid = Uuid::v4();
|
||||
$this->assignment = $application->getAssignment();
|
||||
$this->teamer = $application->getTeamer();
|
||||
$this->remarks = $application->getRemarks();
|
||||
}
|
||||
|
||||
public function getId(): ?int
|
||||
@@ -82,4 +91,28 @@ class Disposition implements BlameableEntityInterface, TimestampableEntityInterf
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getContractPdf(): ?Upload
|
||||
{
|
||||
return $this->contractPdf;
|
||||
}
|
||||
|
||||
public function setContractPdf(?Upload $contractPdf): static
|
||||
{
|
||||
$this->contractPdf = $contractPdf;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getInvoicePdf(): ?Upload
|
||||
{
|
||||
return $this->invoicePdf;
|
||||
}
|
||||
|
||||
public function setInvoicePdf(?Upload $invoicePdf): static
|
||||
{
|
||||
$this->invoicePdf = $invoicePdf;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user