| @@ 410-426 (lines=17) @@ | ||
| 407 | *  | 
                                |
| 408 | * @return array  | 
                                |
| 409 | */  | 
                                |
| 410 | private function getTraslados()  | 
                                |
| 411 |     { | 
                                |
| 412 | $transfers = $this->cfdi->xpath($this->paths['cfdi.taxes.transfers']);  | 
                                |
| 413 | ||
| 414 | $traslados = [];  | 
                                |
| 415 |         foreach ($transfers as $transfer) { | 
                                |
| 416 | $traslado = [  | 
                                |
| 417 | 'impuesto' => $transfer['impuesto']->__toString(),  | 
                                |
| 418 | 'importe' => $transfer['importe']->__toString(),  | 
                                |
| 419 | 'tasa' => $transfer['tasa']->__toString(),  | 
                                |
| 420 | ];  | 
                                |
| 421 | ||
| 422 | $traslados[] = (object) $traslado;  | 
                                |
| 423 | }  | 
                                |
| 424 | ||
| 425 | return $traslados;  | 
                                |
| 426 | }  | 
                                |
| 427 | ||
| 428 | /**  | 
                                |
| 429 | * Retrieves the path 'cfdi.taxes.holdbacks'.  | 
                                |
| @@ 433-448 (lines=16) @@ | ||
| 430 | *  | 
                                |
| 431 | * @return array  | 
                                |
| 432 | */  | 
                                |
| 433 | private function getRetenciones()  | 
                                |
| 434 |     { | 
                                |
| 435 | $holdbacks = $this->cfdi->xpath($this->paths['cfdi.taxes.holdbacks']);  | 
                                |
| 436 | ||
| 437 | $retenciones = [];  | 
                                |
| 438 |         foreach ($holdbacks as $holdback) { | 
                                |
| 439 | $retencion = [  | 
                                |
| 440 | 'impuesto' => $holdback['impuesto']->__toString(),  | 
                                |
| 441 | 'importe' => $holdback['importe']->__toString(),  | 
                                |
| 442 | ];  | 
                                |
| 443 | ||
| 444 | $retenciones[] = (object) $retencion;  | 
                                |
| 445 | }  | 
                                |
| 446 | ||
| 447 | return $retenciones;  | 
                                |
| 448 | }  | 
                                |
| 449 | ||
| 450 | /**  | 
                                |
| 451 | * Retrieves all 'cfdi.items' in the CFDI.  | 
                                |