protected function createModelFromArray(array $array)
    {
        if (!$array[1]) {
            return null;
        }
        $account = new Account();
        list($accountNumber, $x, $countryCode, $bankCode) = explode(':', $array[1]);
        $account->setId($array[1]);
        $account->setAccountNumber($accountNumber);
        $account->setBankCode($bankCode);
        $account->setIban($array[2]);
        $account->setCustomerId($array[3]);
        $account->setCurrency($array[5]);
        $account->setAccountOwnerName($array[6]);
        $account->setAccountDescription($array[8]);

        return $account;
    }
protected function createModelFromArray(array $array)
    {
        if (!$array[1]) {
            return null;
        }
        $account = new Account();
        list($accountNumber, $x, $countryCode, $bankCode) = explode(':', $array[1]);
        $account->setId($array[1]);
        $account->setAccountNumber($accountNumber);
        $account->setBankCode($bankCode);
        $account->setIban($array[2]);
        $account->setCustomerId($array[3]);
        $account->setCurrency($array[5]);
        $account->setAccountOwnerName($array[6]);
        $account->setAccountDescription($array[8]);

        return $account;
    }
protected function createModelFromArray ( array $ array ) { if ( ! $ array [ 1 ] ) { return null ; } $ account = new Account ( ) ; list ( $ accountNumber , $ x , $ countryCode , $ bankCode ) = explode ( ':' , $ array [ 1 ] ) ; $ account -> setId ( $ array [ 1 ] ) ; $ account -> setAccountNumber ( $ accountNumber ) ; $ account -> setBankCode ( $ bankCode ) ; $ account -> setIban ( $ array [ 2 ] ) ; $ account -> setCustomerId ( $ array [ 3 ] ) ; $ account -> setCurrency ( $ array [ 5 ] ) ; $ account -> setAccountOwnerName ( $ array [ 6 ] ) ; $ account -> setAccountDescription ( $ array [ 8 ] ) ; return $ account ; }
Creates a Account model from array.

@param array $array
@return Account
Creates a Account model from array .