. /** * The payable class. * * @package core_payment * @copyright 2020 Shamim Rezaie * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace core_payment\local\entities; /** * The payable class. * * @copyright 2020 Shamim Rezaie * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class payable { private $amount; private $currency; private $accountid; public function __construct(float $amount, string $currency, int $accountid) { $this->amount = $amount; $this->currency = $currency; $this->accountid = $accountid; } /** * Get the amount of the payable cost. * * @return float */ public function get_amount(): float { return $this->amount; } /** * Get the currency of the payable cost. * * @return string */ public function get_currency(): string { return $this->currency; } /** * Get the id of the payment account the cost is payable to. * * @return int */ public function get_account_id(): int { return $this->accountid; } }