. */ declare(strict_types=1); namespace FireflyIII\Services\Bunq\Object; /** * Class MonetaryAccountProfile. */ class MonetaryAccountProfile extends BunqObject { /** @var string */ private $profileActionRequired; /** @var Amount */ private $profileAmountRequired; /** * @var null */ private $profileDrain; /** * @var null */ private $profileFill; /** * MonetaryAccountProfile constructor. * * @param array $data */ public function __construct(array $data) { $this->profileDrain = null; $this->profileFill = null; $this->profileActionRequired = $data['profile_action_required']; $this->profileAmountRequired = new Amount($data['profile_amount_required']); } /** * @return array */ public function toArray(): array { return [ 'profile_action_required' => $this->profileActionRequired, 'profile_amount_required' => $this->profileAmountRequired->toArray(), ]; } }