for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Dtc\QueueBundle\Model;
class JobTiming
{
const STATUS_INSERT = 0;
const STATUS_INSERT_DELAYED = 1;
const STATUS_FINISHED_SUCCESS = 100;
const STATUS_FINISHED_ERROR = 101;
const STATUS_FINISHED_EXPIRED = 102;
const STATUS_FINISHED_STALLED = 103;
protected $finishedAt;
protected $status;
/**
* A list of all the states and descriptions for them.
*
* @return array
*/
public static function getStates()
return [self::STATUS_FINISHED_SUCCESS => ['label' => 'Finished: SUCCESS', 'color' => 'green'],
self::STATUS_FINISHED_ERROR => ['label' => 'Finished: ERROR', 'color' => 'red'],
self::STATUS_FINISHED_EXPIRED => ['label' => 'Finished: EXPIRED', 'color' => 'orange'],
self::STATUS_FINISHED_STALLED => ['label' => 'Finished: STALLED', 'color' => 'gold'],
self::STATUS_INSERT => ['label' => 'INSERT', 'color' => 'purple'],
self::STATUS_INSERT_DELAYED => ['label' => 'INSERT (Delayed)', 'color' => 'navy'], ];
}
* @return mixed
public function getFinishedAt()
return $this->finishedAt;
* @param mixed $finishedAt
public function setFinishedAt($finishedAt)
$this->finishedAt = $finishedAt;
* @return int
public function getStatus()
return $this->status;
* @param int $status
public function setStatus($status)
$this->status = $status;