@@ -64,9 +64,8 @@ discard block |
||
| 64 | 64 | * @param string $sPathLogo Caminho para o arquivo do logo |
| 65 | 65 | * @param string $sDestino Estabelece a direção do envio do documento PDF I-browser D-browser com download S- |
| 66 | 66 | * @param string $sDirPDF Caminho para o diretorio de armazenamento dos arquivos PDF |
| 67 | - * @param string $fonteDACTE Nome da fonte alternativa do DActe |
|
| 68 | 67 | * @param array $aEnd array com o endereço do emitente |
| 69 | - * @param number $mododebug 1-SIM e 0-Não (0 default) |
|
| 68 | + * @param integer $mododebug 1-SIM e 0-Não (0 default) |
|
| 70 | 69 | */ |
| 71 | 70 | public function __construct( |
| 72 | 71 | $docXML = '', |
@@ -142,7 +141,7 @@ discard block |
||
| 142 | 141 | * @param type $orientacao |
| 143 | 142 | * @param type $papel |
| 144 | 143 | * @param type $logoAlign |
| 145 | - * @return type |
|
| 144 | + * @return string |
|
| 146 | 145 | */ |
| 147 | 146 | public function monta($orientacao = '', $papel = 'A4', $logoAlign = 'C', $classPDF = false) |
| 148 | 147 | { |
@@ -244,10 +243,10 @@ discard block |
||
| 244 | 243 | |
| 245 | 244 | /** |
| 246 | 245 | * header |
| 247 | - * @param type $x |
|
| 248 | - * @param type $y |
|
| 249 | - * @param type $pag |
|
| 250 | - * @return type |
|
| 246 | + * @param integer $x |
|
| 247 | + * @param integer $y |
|
| 248 | + * @param integer $pag |
|
| 249 | + * @return double |
|
| 251 | 250 | */ |
| 252 | 251 | private function headerCCe($x, $y, $pag) |
| 253 | 252 | { |
@@ -437,7 +436,7 @@ discard block |
||
| 437 | 436 | |
| 438 | 437 | /** |
| 439 | 438 | * footer |
| 440 | - * @param type $x |
|
| 439 | + * @param integer $x |
|
| 441 | 440 | * @param type $y |
| 442 | 441 | */ |
| 443 | 442 | private function footerCCe($x, $y) |
@@ -15,10 +15,9 @@ |
||
| 15 | 15 | * @author Roberto L. Machado <linux.rlm at gmail dot com> |
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | -use Exception; |
|
| 18 | +use NFePHP\DA\Legacy\Common; |
|
| 19 | 19 | use NFePHP\DA\Legacy\Dom; |
| 20 | 20 | use NFePHP\DA\Legacy\Pdf; |
| 21 | -use NFePHP\DA\Legacy\Common; |
|
| 22 | 21 | |
| 23 | 22 | class Dacanc extends Common |
| 24 | 23 | { |
@@ -71,7 +71,6 @@ discard block |
||
| 71 | 71 | * @param string $sPathLogo Caminho para o arquivo do logo |
| 72 | 72 | * @param string $sDestino Estabelece a direção do envio do documento PDF I-browser D-browser com download S- |
| 73 | 73 | * @param string $sDirPDF Caminho para o diretorio de armazenamento dos arquivos PDF |
| 74 | - * @param string $fonteDACTE Nome da fonte alternativa do DACTE |
|
| 75 | 74 | * @param array $aEnd array com o endereço do emitente |
| 76 | 75 | * @param integer $mododebug 1-SIM e 0-Não (0 default) |
| 77 | 76 | */ |
@@ -163,7 +162,6 @@ discard block |
||
| 163 | 162 | * @param string $orientacao |
| 164 | 163 | * @param string $papel |
| 165 | 164 | * @param string $logoAlign |
| 166 | - * @param string $situacao_externa |
|
| 167 | 165 | * @param string $classPDF |
| 168 | 166 | * @return string |
| 169 | 167 | */ |
@@ -290,7 +288,7 @@ discard block |
||
| 290 | 288 | * @param integer $x |
| 291 | 289 | * @param integer $y |
| 292 | 290 | * @param integer $pag |
| 293 | - * @return integer |
|
| 291 | + * @return double |
|
| 294 | 292 | */ |
| 295 | 293 | private function zCabecalho( |
| 296 | 294 | $x, |
@@ -15,10 +15,8 @@ |
||
| 15 | 15 | * @author Roberto L. Machado <linux.rlm at gmail dot com> |
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | -use Exception; |
|
| 19 | -use NFePHP\DA\Legacy\Dom; |
|
| 20 | -use NFePHP\DA\Legacy\Pdf; |
|
| 21 | 18 | use NFePHP\DA\Legacy\Common; |
| 19 | +use NFePHP\DA\Legacy\Pdf; |
|
| 22 | 20 | |
| 23 | 21 | class Daevento extends Common |
| 24 | 22 | { |
@@ -7,6 +7,9 @@ discard block |
||
| 7 | 7 | * Author: Olivier PLATHEY * |
| 8 | 8 | *******************************************************************************/ |
| 9 | 9 | |
| 10 | +/** |
|
| 11 | + * @param string $enc |
|
| 12 | + */ |
|
| 10 | 13 | function readMap($enc) |
| 11 | 14 | { |
| 12 | 15 | //Read a map file |
@@ -159,6 +162,9 @@ discard block |
||
| 159 | 162 | return $fm; |
| 160 | 163 | } |
| 161 | 164 | |
| 165 | +/** |
|
| 166 | + * @param boolean $symbolic |
|
| 167 | + */ |
|
| 162 | 168 | function makeFontDescriptor($fm, $symbolic) |
| 163 | 169 | { |
| 164 | 170 | //Ascent |
@@ -263,6 +269,11 @@ discard block |
||
| 263 | 269 | return rtrim($s); |
| 264 | 270 | } |
| 265 | 271 | |
| 272 | +/** |
|
| 273 | + * @param string $file |
|
| 274 | + * @param string $s |
|
| 275 | + * @param string $mode |
|
| 276 | + */ |
|
| 266 | 277 | function saveToFile($file, $s, $mode) |
| 267 | 278 | { |
| 268 | 279 | $f = fopen($file, 'w'.$mode); |
@@ -170,6 +170,9 @@ discard block |
||
| 170 | 170 | $this->pdfVersion='1.3'; |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | + /** |
|
| 174 | + * @param integer $right |
|
| 175 | + */ |
|
| 173 | 176 | public function setMargins($left, $top, $right = null) |
| 174 | 177 | { |
| 175 | 178 | //Set left, top and right margins |
@@ -202,6 +205,9 @@ discard block |
||
| 202 | 205 | $this->rMargin = $margin; |
| 203 | 206 | } |
| 204 | 207 | |
| 208 | + /** |
|
| 209 | + * @param boolean $auto |
|
| 210 | + */ |
|
| 205 | 211 | public function setAutoPageBreak($auto, $margin = 0) |
| 206 | 212 | { |
| 207 | 213 | //Set auto page break mode and triggering margin |
@@ -210,6 +216,9 @@ discard block |
||
| 210 | 216 | $this->pageBreakTrigger = $this->h-$margin; |
| 211 | 217 | } |
| 212 | 218 | |
| 219 | + /** |
|
| 220 | + * @param string $zoom |
|
| 221 | + */ |
|
| 213 | 222 | public function setDisplayMode($zoom, $layout = 'continuous') |
| 214 | 223 | { |
| 215 | 224 | //Set display mode in viewer |
@@ -225,6 +234,9 @@ discard block |
||
| 225 | 234 | } |
| 226 | 235 | } |
| 227 | 236 | |
| 237 | + /** |
|
| 238 | + * @param boolean $compress |
|
| 239 | + */ |
|
| 228 | 240 | public function setCompression($compress) |
| 229 | 241 | { |
| 230 | 242 | //Set page compression |
@@ -286,6 +298,9 @@ discard block |
||
| 286 | 298 | $this->aliasNbPages=$alias; |
| 287 | 299 | } |
| 288 | 300 | |
| 301 | + /** |
|
| 302 | + * @param string $msg |
|
| 303 | + */ |
|
| 289 | 304 | public function error($msg) |
| 290 | 305 | { |
| 291 | 306 | throw Exception($msg); |
@@ -402,6 +417,11 @@ discard block |
||
| 402 | 417 | return $this->page; |
| 403 | 418 | } |
| 404 | 419 | |
| 420 | + /** |
|
| 421 | + * @param integer $r |
|
| 422 | + * @param integer $g |
|
| 423 | + * @param integer $b |
|
| 424 | + */ |
|
| 405 | 425 | public function setDrawColor($r, $g = null, $b = null) |
| 406 | 426 | { |
| 407 | 427 | //Set color for all stroking operations |
@@ -415,6 +435,11 @@ discard block |
||
| 415 | 435 | } |
| 416 | 436 | } |
| 417 | 437 | |
| 438 | + /** |
|
| 439 | + * @param integer $r |
|
| 440 | + * @param integer $g |
|
| 441 | + * @param integer $b |
|
| 442 | + */ |
|
| 418 | 443 | public function setFillColor($r, $g = null, $b = null) |
| 419 | 444 | { |
| 420 | 445 | //Set color for all filling operations |
@@ -429,6 +454,11 @@ discard block |
||
| 429 | 454 | } |
| 430 | 455 | } |
| 431 | 456 | |
| 457 | + /** |
|
| 458 | + * @param integer $r |
|
| 459 | + * @param integer $g |
|
| 460 | + * @param integer $b |
|
| 461 | + */ |
|
| 432 | 462 | public function settextColor($r, $g = null, $b = null) |
| 433 | 463 | { |
| 434 | 464 | //Set color for text |
@@ -557,6 +587,9 @@ discard block |
||
| 557 | 587 | } |
| 558 | 588 | } |
| 559 | 589 | |
| 590 | + /** |
|
| 591 | + * @param string $family |
|
| 592 | + */ |
|
| 560 | 593 | public function setFont($family, $style = '', $size = 0) |
| 561 | 594 | { |
| 562 | 595 | //Select a font; size given in points |
@@ -655,6 +688,10 @@ discard block |
||
| 655 | 688 | $this->links[$link] = array($page, $y); |
| 656 | 689 | } |
| 657 | 690 | |
| 691 | + /** |
|
| 692 | + * @param double $y |
|
| 693 | + * @param string $link |
|
| 694 | + */ |
|
| 658 | 695 | public function link($x, $y, $w, $h, $link) |
| 659 | 696 | { |
| 660 | 697 | //Put a link on the page |
@@ -990,6 +1027,10 @@ discard block |
||
| 990 | 1027 | } |
| 991 | 1028 | } |
| 992 | 1029 | |
| 1030 | + /** |
|
| 1031 | + * @param string $file |
|
| 1032 | + * @param double $x |
|
| 1033 | + */ |
|
| 993 | 1034 | public function image($file, $x = null, $y = null, $w = 0, $h = 0, $type = '', $link = '') |
| 994 | 1035 | { |
| 995 | 1036 | //Put an image on the page |
@@ -1192,6 +1233,9 @@ discard block |
||
| 1192 | 1233 | } |
| 1193 | 1234 | } |
| 1194 | 1235 | |
| 1236 | + /** |
|
| 1237 | + * @param string $format |
|
| 1238 | + */ |
|
| 1195 | 1239 | protected function getpageformat($format) |
| 1196 | 1240 | { |
| 1197 | 1241 | $format=strtolower($format); |
@@ -1210,6 +1254,10 @@ discard block |
||
| 1210 | 1254 | return defined('FPDF_FONTPATH') ? FPDF_FONTPATH : ''; |
| 1211 | 1255 | } |
| 1212 | 1256 | |
| 1257 | + /** |
|
| 1258 | + * @param string $orientation |
|
| 1259 | + * @param string $format |
|
| 1260 | + */ |
|
| 1213 | 1261 | protected function beginPage($orientation, $format) |
| 1214 | 1262 | { |
| 1215 | 1263 | $this->page++; |
@@ -1348,6 +1396,9 @@ discard block |
||
| 1348 | 1396 | return array('w'=>$a[0], 'h'=>$a[1], 'cs'=>$colspace, 'bpc'=>$bpc, 'f'=>'DCTDecode', 'data'=>$data); |
| 1349 | 1397 | } |
| 1350 | 1398 | |
| 1399 | + /** |
|
| 1400 | + * @param string $file |
|
| 1401 | + */ |
|
| 1351 | 1402 | protected function parsePNG($file) |
| 1352 | 1403 | { |
| 1353 | 1404 | //Extract info from a PNG file |
@@ -164,6 +164,9 @@ discard block |
||
| 164 | 164 | /** |
| 165 | 165 | * Code128 |
| 166 | 166 | * Imprime barcode 128 |
| 167 | + * @param double $x |
|
| 168 | + * @param double $y |
|
| 169 | + * @param integer $h |
|
| 167 | 170 | */ |
| 168 | 171 | public function code128($x, $y, $code, $w, $h) |
| 169 | 172 | { |
@@ -240,8 +243,8 @@ discard block |
||
| 240 | 243 | * rotate |
| 241 | 244 | * Rotaciona para impressão paisagem (landscape) |
| 242 | 245 | * @param number $angle |
| 243 | - * @param number $x |
|
| 244 | - * @param number $y |
|
| 246 | + * @param integer $x |
|
| 247 | + * @param integer $y |
|
| 245 | 248 | */ |
| 246 | 249 | public function rotate($angle, $x = -1, $y = -1) |
| 247 | 250 | { |
@@ -340,12 +343,12 @@ discard block |
||
| 340 | 343 | /** |
| 341 | 344 | * arc |
| 342 | 345 | * Desenha o arco para arredondar o canto do retangulo |
| 343 | - * @param number $x1 |
|
| 344 | - * @param number $y1 |
|
| 345 | - * @param number $x2 |
|
| 346 | - * @param number $y2 |
|
| 347 | - * @param number $x3 |
|
| 348 | - * @param number $y3 |
|
| 346 | + * @param double $x1 |
|
| 347 | + * @param double $y1 |
|
| 348 | + * @param double $x2 |
|
| 349 | + * @param double $y2 |
|
| 350 | + * @param double $x3 |
|
| 351 | + * @param double $y3 |
|
| 349 | 352 | */ |
| 350 | 353 | private function arc($x1, $y1, $x2, $y2, $x3, $y3) |
| 351 | 354 | { |
@@ -370,8 +373,8 @@ discard block |
||
| 370 | 373 | * @param number $y1 |
| 371 | 374 | * @param number $x2 |
| 372 | 375 | * @param number $y2 |
| 373 | - * @param number $width |
|
| 374 | - * @param number $nb |
|
| 376 | + * @param integer $width |
|
| 377 | + * @param integer $nb |
|
| 375 | 378 | */ |
| 376 | 379 | public function dashedRect($x1, $y1, $x2, $y2, $width = 1, $nb = 15) |
| 377 | 380 | { |
@@ -440,11 +443,11 @@ discard block |
||
| 440 | 443 | * @param number $w |
| 441 | 444 | * @param number $h |
| 442 | 445 | * @param string $txt |
| 443 | - * @param string $border |
|
| 446 | + * @param integer $border |
|
| 444 | 447 | * @param string $align |
| 445 | 448 | * @param boolean $fill |
| 446 | - * @param number $maxline |
|
| 447 | - * @param number $prn |
|
| 449 | + * @param integer $maxline |
|
| 450 | + * @param integer $prn |
|
| 448 | 451 | * @return int |
| 449 | 452 | */ |
| 450 | 453 | private function drawRows($w, $h, $txt, $border = 0, $align = 'J', $fill = false, $maxline = 0, $prn = 0) |
@@ -626,10 +629,10 @@ discard block |
||
| 626 | 629 | * CellFit |
| 627 | 630 | * Celula com escala horizontal caso o texto seja muito largo |
| 628 | 631 | * @param number $w |
| 629 | - * @param number $h |
|
| 632 | + * @param integer $h |
|
| 630 | 633 | * @param string $txt |
| 631 | - * @param number $border |
|
| 632 | - * @param number $ln |
|
| 634 | + * @param integer $border |
|
| 635 | + * @param integer $ln |
|
| 633 | 636 | * @param string $align |
| 634 | 637 | * @param boolean $fill |
| 635 | 638 | * @param string $link |
@@ -681,10 +684,10 @@ discard block |
||
| 681 | 684 | * CellFitScale |
| 682 | 685 | * Celula com escalamento horizontal somente se necessário |
| 683 | 686 | * @param number $w |
| 684 | - * @param number $h |
|
| 687 | + * @param integer $h |
|
| 685 | 688 | * @param string $txt |
| 686 | - * @param number $border |
|
| 687 | - * @param number $ln |
|
| 689 | + * @param integer $border |
|
| 690 | + * @param integer $ln |
|
| 688 | 691 | * @param string $align |
| 689 | 692 | * @param boolean $fill |
| 690 | 693 | * @param string $link |
@@ -698,10 +701,10 @@ discard block |
||
| 698 | 701 | * CellFitScaleForce |
| 699 | 702 | * Celula com escalamento forçado |
| 700 | 703 | * @param number $w |
| 701 | - * @param number $h |
|
| 704 | + * @param integer $h |
|
| 702 | 705 | * @param string $txt |
| 703 | - * @param number $border |
|
| 704 | - * @param number $ln |
|
| 706 | + * @param integer $border |
|
| 707 | + * @param integer $ln |
|
| 705 | 708 | * @param string $align |
| 706 | 709 | * @param boolean $fill |
| 707 | 710 | * @param string $link |
@@ -723,10 +726,10 @@ discard block |
||
| 723 | 726 | * CellFitSpace |
| 724 | 727 | * Celula com espaçamento de caracteres somente se necessário |
| 725 | 728 | * @param number $w |
| 726 | - * @param number $h |
|
| 729 | + * @param integer $h |
|
| 727 | 730 | * @param string $txt |
| 728 | - * @param number $border |
|
| 729 | - * @param number $ln |
|
| 731 | + * @param integer $border |
|
| 732 | + * @param integer $ln |
|
| 730 | 733 | * @param string $align |
| 731 | 734 | * @param boolean $fill |
| 732 | 735 | * @param string $link |
@@ -740,10 +743,10 @@ discard block |
||
| 740 | 743 | * CellFitSpaceForce |
| 741 | 744 | * Celula com espaçamento de caracteres forçado |
| 742 | 745 | * @param number $w |
| 743 | - * @param number $h |
|
| 746 | + * @param integer $h |
|
| 744 | 747 | * @param string $txt |
| 745 | - * @param number $border |
|
| 746 | - * @param number $ln |
|
| 748 | + * @param integer $border |
|
| 749 | + * @param integer $ln |
|
| 747 | 750 | * @param string $align |
| 748 | 751 | * @param boolean $fill |
| 749 | 752 | * @param string $link |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | * @param string $sPathLogo Caminho para o arquivo do logo |
| 72 | 72 | * @param string $sDestino Estabelece a direção do envio do documento PDF I-browser D-browser com download S- |
| 73 | 73 | * @param string $sDirPDF Caminho para o diretorio de armazenamento dos arquivos PDF |
| 74 | - * @param string $fonteDAMDFE Nome da fonte alternativa do DAnfe |
|
| 74 | + * @param string $fontePDF Nome da fonte alternativa do DAnfe |
|
| 75 | 75 | * @param integer $mododebug 0-Não 1-Sim e 2-nada (2 default) |
| 76 | 76 | */ |
| 77 | 77 | public function __construct( |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | * @param float $x |
| 265 | 265 | * @param float $y |
| 266 | 266 | * @param integer $pag |
| 267 | - * @return string |
|
| 267 | + * @return double |
|
| 268 | 268 | */ |
| 269 | 269 | private function headerMDFePaisagem($x, $y, $pag) |
| 270 | 270 | { |
@@ -429,7 +429,7 @@ discard block |
||
| 429 | 429 | * @param float $x |
| 430 | 430 | * @param float $y |
| 431 | 431 | * @param integer $pag |
| 432 | - * @return string |
|
| 432 | + * @return double |
|
| 433 | 433 | */ |
| 434 | 434 | private function headerMDFeRetrato($x, $y, $pag) |
| 435 | 435 | { |
@@ -592,7 +592,7 @@ discard block |
||
| 592 | 592 | * |
| 593 | 593 | * @param float $x |
| 594 | 594 | * @param float $y |
| 595 | - * @return void |
|
| 595 | + * @return double |
|
| 596 | 596 | */ |
| 597 | 597 | private function bodyMDFe($x, $y) |
| 598 | 598 | { |
@@ -15,9 +15,9 @@ |
||
| 15 | 15 | * @author Leandro C. Lopez <leandro dot castoldi at gmail dot com> |
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | +use NFePHP\DA\Legacy\Common; |
|
| 18 | 19 | use NFePHP\DA\Legacy\Dom; |
| 19 | 20 | use NFePHP\DA\Legacy\Pdf; |
| 20 | -use NFePHP\DA\Legacy\Common; |
|
| 21 | 21 | |
| 22 | 22 | class Damdfe extends Common |
| 23 | 23 | { |
@@ -55,9 +55,9 @@ discard block |
||
| 55 | 55 | * |
| 56 | 56 | * @param string $docXML |
| 57 | 57 | * @param string $sPathLogo |
| 58 | - * @param string $mododebug |
|
| 58 | + * @param integer $mododebug |
|
| 59 | 59 | * @param string $idToken |
| 60 | - * @param string $Token |
|
| 60 | + * @param string $emitToken |
|
| 61 | 61 | */ |
| 62 | 62 | public function __construct( |
| 63 | 63 | $docXML = '', |
@@ -718,6 +718,9 @@ discard block |
||
| 718 | 718 | return $hex; |
| 719 | 719 | }//fim str2Hex |
| 720 | 720 | |
| 721 | + /** |
|
| 722 | + * @param string $tBand |
|
| 723 | + */ |
|
| 721 | 724 | protected static function getCardName($tBand) |
| 722 | 725 | { |
| 723 | 726 | switch ($tBand) { |
@@ -739,6 +742,9 @@ discard block |
||
| 739 | 742 | return $tBandNome; |
| 740 | 743 | } |
| 741 | 744 | |
| 745 | + /** |
|
| 746 | + * @param string $tPag |
|
| 747 | + */ |
|
| 742 | 748 | protected function tipoPag($tPag) |
| 743 | 749 | { |
| 744 | 750 | switch ($tPag) { |
@@ -14,11 +14,7 @@ |
||
| 14 | 14 | * @author Roberto Spadim <roberto at spadim dot com dot br> |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -use Exception; |
|
| 18 | -use NFePHP\DA\Legacy\Dom; |
|
| 19 | -use NFePHP\DA\Legacy\Pdf; |
|
| 20 | 17 | use NFePHP\DA\Legacy\Common; |
| 21 | -use Endroid\QrCode\QrCode; |
|
| 22 | 18 | |
| 23 | 19 | class Danfce extends Common |
| 24 | 20 | { |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | * a mesma deverá já ter sido pré definida inclusive seu |
| 75 | 75 | * conector |
| 76 | 76 | * |
| 77 | - * @param PrinterInterface $this->printer |
|
| 77 | + * @param PrinterInterface $printer |
|
| 78 | 78 | */ |
| 79 | 79 | public function __construct(PrinterInterface $printer) |
| 80 | 80 | { |
@@ -15,8 +15,8 @@ |
||
| 15 | 15 | * @author Roberto L. Machado <linux dot rlm at gmail dot com> |
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | -use Posprint\Printers\PrinterInterface; |
|
| 19 | 18 | use InvalidArgumentException; |
| 19 | +use Posprint\Printers\PrinterInterface; |
|
| 20 | 20 | |
| 21 | 21 | class DanfcePos |
| 22 | 22 | { |
@@ -72,9 +72,9 @@ discard block |
||
| 72 | 72 | * @param string $sPathLogo Caminho para o arquivo do logo |
| 73 | 73 | * @param string $sDestino Destino do PDF I-browser D-download S-string F-salva |
| 74 | 74 | * @param string $sDirPDF Caminho para o diretorio de armazenamento dos arquivos PDF |
| 75 | - * @param string $fonteDANFE Nome da fonte alternativa |
|
| 75 | + * @param string $fontePDF Nome da fonte alternativa |
|
| 76 | 76 | * @param array $aEnd array com o endereço do emitente |
| 77 | - * @param number $mododebug 0-Não 1-Sim e 2-nada (2 default) |
|
| 77 | + * @param integer $mododebug 0-Não 1-Sim e 2-nada (2 default) |
|
| 78 | 78 | */ |
| 79 | 79 | public function __construct( |
| 80 | 80 | $docXML = '', |
@@ -167,9 +167,8 @@ discard block |
||
| 167 | 167 | * @param string $orientacao |
| 168 | 168 | * @param string $papel |
| 169 | 169 | * @param string $logoAlign |
| 170 | - * @param int $situacao_externa |
|
| 171 | 170 | * @param boolean $classe_pdf |
| 172 | - * @return number |
|
| 171 | + * @return string |
|
| 173 | 172 | */ |
| 174 | 173 | public function monta($orientacao = '', $papel = 'A4', $logoAlign = 'C', $classe_pdf = false) |
| 175 | 174 | { |
@@ -264,9 +263,9 @@ discard block |
||
| 264 | 263 | |
| 265 | 264 | /** |
| 266 | 265 | * pHeader |
| 267 | - * @param number $x |
|
| 268 | - * @param number $y |
|
| 269 | - * @param number $pag |
|
| 266 | + * @param integer $x |
|
| 267 | + * @param integer $y |
|
| 268 | + * @param integer $pag |
|
| 270 | 269 | * @return number |
| 271 | 270 | */ |
| 272 | 271 | private function pHeader($x, $y, $pag) |
@@ -496,8 +495,8 @@ discard block |
||
| 496 | 495 | /** |
| 497 | 496 | * pBody |
| 498 | 497 | * |
| 499 | - * @param number $x |
|
| 500 | - * @param number $y |
|
| 498 | + * @param integer $x |
|
| 499 | + * @param double $y |
|
| 501 | 500 | */ |
| 502 | 501 | private function pBody($x, $y) |
| 503 | 502 | { |
@@ -523,7 +522,7 @@ discard block |
||
| 523 | 522 | /** |
| 524 | 523 | * pFooter |
| 525 | 524 | * |
| 526 | - * @param number $x |
|
| 525 | + * @param integer $x |
|
| 527 | 526 | * @param number $y |
| 528 | 527 | */ |
| 529 | 528 | private function pFooter($x, $y) |
@@ -15,10 +15,9 @@ |
||
| 15 | 15 | * @author Roberto L. Machado <linux.rlm at gmail dot com> |
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | -use Exception; |
|
| 18 | +use NFePHP\DA\Legacy\Common; |
|
| 19 | 19 | use NFePHP\DA\Legacy\Dom; |
| 20 | 20 | use NFePHP\DA\Legacy\Pdf; |
| 21 | -use NFePHP\DA\Legacy\Common; |
|
| 22 | 21 | |
| 23 | 22 | class Daevento extends Common |
| 24 | 23 | { |