| 1 | <?php |
||
| 15 | class SunatErrorHelper |
||
| 16 | { |
||
| 17 | private $xmlErrorFile = __DIR__ . '/../Resources/CodeErrors.xml'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Get Message by Code. |
||
| 21 | * |
||
| 22 | * @param string $code |
||
| 23 | * @return string |
||
| 24 | */ |
||
| 25 | 12 | public function getMessageByCode($code) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * Cambia el archivo de busqueda de errores por defecto. |
||
| 42 | * |
||
| 43 | * @param $xmlErrorFile |
||
| 44 | * @return $this |
||
| 45 | * @throws \Exception |
||
| 46 | */ |
||
| 47 | 2 | public function setXmlErrorFile($xmlErrorFile) |
|
| 55 | } |