| 1 | <?php |
||
| 5 | class JobTiming |
||
| 6 | { |
||
| 7 | const STATUS_INSERT = 0; |
||
| 8 | const STATUS_INSERT_DELAYED = 1; |
||
| 9 | const STATUS_FINISHED_SUCCESS = 100; |
||
| 10 | const STATUS_FINISHED_ERROR = 101; |
||
| 11 | const STATUS_FINISHED_EXPIRED = 102; |
||
| 12 | const STATUS_FINISHED_STALLED = 103; |
||
| 13 | |||
| 14 | protected $finishedAt; |
||
| 15 | protected $status; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * A list of all the states and descriptions for them. |
||
| 19 | * |
||
| 20 | * @return array |
||
| 21 | */ |
||
| 22 | public static function getStates() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return mixed |
||
| 34 | */ |
||
| 35 | 3 | public function getFinishedAt() |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @param mixed $finishedAt |
||
| 42 | */ |
||
| 43 | 36 | public function setFinishedAt($finishedAt) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @return int |
||
| 50 | */ |
||
| 51 | 3 | public function getStatus() |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @param int $status |
||
| 58 | */ |
||
| 59 | 36 | public function setStatus($status) |
|
| 63 | } |
||
| 64 |