Commit 6c9e79df authored by Mabboux Jérémy's avatar Mabboux Jérémy

add deep errors statuses

parent 619eafe4
......@@ -5,4 +5,8 @@ final:
- PROCESSED
error:
- ERROR
- ERROR_NOT_RECEIPT
\ No newline at end of file
- ERROR_NOT_RECEIPT
deepErrors:
- DEEP_ERROR_INFERENCE
- DEEP_ERROR_IMAGE
- DEEP_ERROR_API
\ No newline at end of file
......@@ -2,18 +2,22 @@
namespace AG\DocumentStatuses;
class DocumentStatuses extends AbstractDocumentStatuses implements DocumentStatusesInterface_4bec9f34e0ff58094009717a7bd813a2
class DocumentStatuses extends AbstractDocumentStatuses implements DocumentStatusesInterface_329156a4462742ccefdc4396518d345f
{
public static function getVersion(){
return "4bec9f34e0ff58094009717a7bd813a2";
return "329156a4462742ccefdc4396518d345f";
}
const WAITING_FOR_PROCESS='WAITING_FOR_PROCESS';
const PROCESSING='PROCESSING';
const PROCESSED='PROCESSED';
const ERROR='ERROR';
const ERROR_NOT_RECEIPT='ERROR_NOT_RECEIPT';
const DEEP_ERROR_INFERENCE='DEEP_ERROR_INFERENCE';
const DEEP_ERROR_IMAGE='DEEP_ERROR_IMAGE';
const DEEP_ERROR_API='DEEP_ERROR_API';
public static function getRunningStatuses() { return ["WAITING_FOR_PROCESS","PROCESSING"];}
public static function getFinalStatuses() { return ["PROCESSED"];}
public static function getErrorStatuses() { return ["ERROR","ERROR_NOT_RECEIPT"];}
public static function getAll(){ return array_merge(self::getRunningStatuses(),self::getFinalStatuses(),self::getErrorStatuses());}
public static function getDeepErrorsStatuses() { return ["DEEP_ERROR_INFERENCE","DEEP_ERROR_IMAGE","DEEP_ERROR_API"];}
public static function getAll(){ return array_merge(self::getRunningStatuses(),self::getFinalStatuses(),self::getErrorStatuses(),self::getDeepErrorsStatuses());}
}
<?php
namespace AG\DocumentStatuses;
interface DocumentStatusesInterface_329156a4462742ccefdc4396518d345f extends DocumentStatusesInterface_4bec9f34e0ff58094009717a7bd813a2
{
public static function getRunningStatuses();
public static function getFinalStatuses();
public static function getErrorStatuses();
public static function getDeepErrorsStatuses();
public static function getAll();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment