Commit c6b88b2e authored by Mabboux Jérémy's avatar Mabboux Jérémy

add NOT_EXPLOITABLE status

parent 6c9e79df
......@@ -3,6 +3,7 @@ running:
- PROCESSING
final:
- PROCESSED
- NOT_EXPLOITABLE
error:
- ERROR
- ERROR_NOT_RECEIPT
......
......@@ -2,21 +2,22 @@
namespace AG\DocumentStatuses;
class DocumentStatuses extends AbstractDocumentStatuses implements DocumentStatusesInterface_329156a4462742ccefdc4396518d345f
class DocumentStatuses extends AbstractDocumentStatuses implements DocumentStatusesInterface_015c9c89268afc49da8073014daa8923
{
public static function getVersion(){
return "329156a4462742ccefdc4396518d345f";
return "015c9c89268afc49da8073014daa8923";
}
const WAITING_FOR_PROCESS='WAITING_FOR_PROCESS';
const PROCESSING='PROCESSING';
const PROCESSED='PROCESSED';
const NOT_EXPLOITABLE='NOT_EXPLOITABLE';
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 getFinalStatuses() { return ["PROCESSED","NOT_EXPLOITABLE"];}
public static function getErrorStatuses() { return ["ERROR","ERROR_NOT_RECEIPT"];}
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_015c9c89268afc49da8073014daa8923 extends DocumentStatusesInterface_329156a4462742ccefdc4396518d345f
{
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