PromisePay/promisepay-php

View on GitHub
lib/DataObjects/BankAccount.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace PromisePay\DataObjects;

/**
 * Class BankAccount
 * @package PromisePay\DataObjects
 */
class BankAccount extends AccountAbstract
{
    private $_bank;

    public function __construct($jsonData)
    {
        $this->_bank = new Bank($jsonData);
        parent::__construct($jsonData);
    }

    /**
     * @return mixed
     */
    public function getBank()
    {
        return $this->_bank;
    }

    /**
     * @param mixed $bank
     */
    public function setBank($bank)
    {
        $this->_bank = $bank;
    }
}