Translations
2 years ago
ErrorsService.php
3 years ago
ErrorsServiceProvider.php
3 years ago
ErrorsTranslationService.php
2 years ago
ErrorsService.php
17 lines
| 1 | <?php |
| 2 | |
| 3 | namespace SureCart\Support\Errors; |
| 4 | |
| 5 | /** |
| 6 | * Handles error translations from the API. |
| 7 | */ |
| 8 | class ErrorsService { |
| 9 | /** |
| 10 | * Translations for error codes. |
| 11 | */ |
| 12 | public function translate( $response = null, $code = null ) { |
| 13 | $translations = new ErrorsTranslationService(); |
| 14 | return $translations->translate( $response, $code ); |
| 15 | } |
| 16 | } |
| 17 |