update packinglists from vt portal

This commit is contained in:
omair saleh
2021-08-23 08:39:59 +08:00
parent d24fea2910
commit 276e12679d
88 changed files with 2252 additions and 692 deletions
@@ -7,81 +7,64 @@ use Carbon\Carbon;
class StepsObject implements DataTransferObject
{
private $id;
private $appointee_id;
/** @var int */
private $appointeeId;
/** @var string */
private $reference;
private $primary;
/** @var float */
private $sequence;
private $status;
/** @var string */
private $obligationId;
private $contract_status;
private $completed_date;
private $hash_id;
public function __construct(int $appointee_id, string $reference, bool $primary, float $sequence, int $status, int $contract_status, ?string $completed_date, int $id=0, ?string $hash_id)
/**
* StepsObject constructor.
* @param int $appointeeId
* @param string $reference
* @param float $sequence
* @param string $obligationId
*/
public function __construct(int $appointeeId, string $reference, float $sequence, string $obligationId)
{
$this->appointee_id = $appointee_id;
$this->appointeeId = $appointeeId;
$this->reference = $reference;
$this->primary = $primary;
$this->sequence = $sequence;
$this->status = $status;
$this->contract_status = $contract_status;
$this->completed_date = $completed_date;
$this->id = $id;
$this->hash_id = $hash_id;
$this->obligationId = $obligationId;
}
/**
* @return int
*/
public function getAppointeeId(): int
{
return $this->appointee_id;
return $this->appointeeId;
}
/**
* @return string
*/
public function getReference(): string
{
return $this->reference;
}
public function getPrimary(): bool
{
return $this->primary;
}
/**
* @return float
*/
public function getSequence(): float
{
return $this->sequence;
}
public function getStatus(): int
/**
* @return string
*/
public function getObligationId(): string
{
return $this->status;
return $this->obligationId;
}
public function getContractStatus(): int
{
return $this->contract_status;
}
public function getCompletedDate(): Carbon
{
return $this->completed_date ? Carbon::parse($this->completed_date) : Carbon::now();
}
public function getId(): int
{
return $this->id;
}
public function getHashId(): ?string
{
return $this->hash_id;
}
}