Tadah.Operation
*/
class Operation
{
/**
* Generated from protobuf enum OPEN_JOB = 0;
*/
const OPEN_JOB = 0;
/**
* Generated from protobuf enum CLOSE_JOB = 1;
*/
const CLOSE_JOB = 1;
/**
* Generated from protobuf enum EXECUTE_SCRIPT = 2;
*/
const EXECUTE_SCRIPT = 2;
/**
* Generated from protobuf enum RENEW_TAMPA_JOB_LEASE = 3;
*/
const RENEW_TAMPA_JOB_LEASE = 3;
/**
* Generated from protobuf enum CLOSE_ALL_JOBS = 4;
*/
const CLOSE_ALL_JOBS = 4;
/**
* Generated from protobuf enum CLOSE_ALL_TAMPA_PROCESSES = 5;
*/
const CLOSE_ALL_TAMPA_PROCESSES = 5;
/**
* Generated from protobuf enum THUMBNAIL = 6;
*/
const THUMBNAIL = 6;
private static $valueToName = [
self::OPEN_JOB => 'OPEN_JOB',
self::CLOSE_JOB => 'CLOSE_JOB',
self::EXECUTE_SCRIPT => 'EXECUTE_SCRIPT',
self::RENEW_TAMPA_JOB_LEASE => 'RENEW_TAMPA_JOB_LEASE',
self::CLOSE_ALL_JOBS => 'CLOSE_ALL_JOBS',
self::CLOSE_ALL_TAMPA_PROCESSES => 'CLOSE_ALL_TAMPA_PROCESSES',
self::THUMBNAIL => 'THUMBNAIL',
];
public static function name($value)
{
if (!isset(self::$valueToName[$value])) {
throw new UnexpectedValueException(sprintf(
'Enum %s has no name defined for value %s', __CLASS__, $value));
}
return self::$valueToName[$value];
}
public static function value($name)
{
$const = __CLASS__ . '::' . strtoupper($name);
if (!defined($const)) {
throw new UnexpectedValueException(sprintf(
'Enum %s has no value defined for name %s', __CLASS__, $name));
}
return constant($const);
}
}