. */ declare(strict_types=1); namespace FireflyIII\Services\Bunq\Object; /** * Class Amount. */ class Amount extends BunqObject { /** @var string */ private $currency; /** @var string */ private $value; /** * Amount constructor. * * @param array $data */ public function __construct(array $data) { $this->currency = $data['currency']; $this->value = $data['value']; } /** * @return string */ public function getCurrency(): string { return $this->currency; } /** * @return string */ public function getValue(): string { return $this->value; } /** * @return array */ public function toArray(): array { return [ 'currency' => $this->currency, 'value' => $this->value, ]; } }