You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
817 B
42 lines
817 B
<?php
|
|
|
|
namespace LoanApproval;
|
|
|
|
class Loan implements \JsonSerializable
|
|
{
|
|
private int $account_id;
|
|
private int $approval_id;
|
|
private int $somme;
|
|
|
|
/**
|
|
* @param int $account_id
|
|
* @param int $approval_id
|
|
* @param int $somme
|
|
*/
|
|
public function __construct(int $account_id, int $approval_id, int $somme)
|
|
{
|
|
$this->account_id = $account_id;
|
|
$this->approval_id = $approval_id;
|
|
$this->somme = $somme;
|
|
}
|
|
|
|
public function getAccountId(): int
|
|
{
|
|
return $this->account_id;
|
|
}
|
|
|
|
public function getApprovalId(): int
|
|
{
|
|
return $this->approval_id;
|
|
}
|
|
|
|
public function getSomme(): int
|
|
{
|
|
return $this->somme;
|
|
}
|
|
|
|
public function jsonSerialize() : array
|
|
{
|
|
return get_object_vars($this);
|
|
}
|
|
} |