private function processWarnings($warnings)
    {
        $msgs = [
            1 => 'DIC poplatnika v datove zprave se neshoduje s DIC v certifikatu',
            2 => 'Chybny format DIC poverujiciho poplatnika',
            3 => 'Chybna hodnota PKP',
            4 => 'Datum a cas prijeti trzby je novejsi nez datum a cas prijeti zpravy',
            5 => 'Datum a cas prijeti trzby je vyrazne v minulosti '
        ];

        //Reset last warnings
        $this->lastWarnings = array();

        if (is_array($warnings))
        {
            foreach ($warnings as $warning)
            {
                $this->lastWarnings[] = [
                    'code'    => $warning->kod_varov,
                    'message' => isset($msgs[$warning->kod_varov]) ? $msgs[$warning->kod_varov] : ''
                ];
            }
        }
        else
        {
            $this->lastWarnings[] = [
                'code'    => $warnings->kod_varov,
                'message' => isset($msgs[$warnings->kod_varov]) ? $msgs[$warnings->kod_varov] : ''
            ];
        }

    }