public function getCompanyForBUC($account, $bankCode = null)
    {
        $bucer      = new \FlexiPeeHP\FlexiBeeRW(null,
            ['evidence' => 'adresar-bankovni-ucet']);
        $companyRaw = $bucer->getColumnsFromFlexibee(['firma'],
            empty($bankCode) ? ['buc' => $account] : ['buc' => $account, 'smerKod' => $bankCode]);
        return array_key_exists(0, $companyRaw) ? $companyRaw[0]['firma'] : null;
    }
public function getCompanyForBUC($account, $bankCode = null)
    {
        $bucer      = new \FlexiPeeHP\FlexiBeeRW(null,
            ['evidence' => 'adresar-bankovni-ucet']);
        $companyRaw = $bucer->getColumnsFromFlexibee(['firma'],
            empty($bankCode) ? ['buc' => $account] : ['buc' => $account, 'smerKod' => $bankCode]);
        return array_key_exists(0, $companyRaw) ? $companyRaw[0]['firma'] : null;
    }
public function getCompanyForBUC ( $ account , $ bankCode = null ) { $ bucer = new \ FlexiPeeHP \ FlexiBeeRW ( null , [ 'evidence' => 'adresar-bankovni-ucet' ] ) ; $ companyRaw = $ bucer -> getColumnsFromFlexibee ( [ 'firma' ] , empty ( $ bankCode ) ? [ 'buc' => $ account ] : [ 'buc' => $ account , 'smerKod' => $ bankCode ] ) ; return array_key_exists ( 0 , $ companyRaw ) ? $ companyRaw [ 0 ] [ 'firma' ] : null ; }
Obtain FlexiBee company code for given bank account number

@param string $account
@param string $bankCode

@return string Company Code
Obtain FlexiBee company code for given bank account number