$status['new_version_available'] = false;
/**
* All Active Collab jobs extend this class.
*
* @package ActiveCollab\ActiveCollabJobs\Jobs
*/
abstract class Job extends BaseJob
{
/**
* Construct a new Job instance.
*
* @param array|null $data
* @throws InvalidArgumentException
*/
public function __construct(array $data = null)
{
parent::__construct($data);
}
/**
* Validate and return instance ID.
*
* @return int
*/
protected function getInstanceId()
{
/* if ($instance_id = $this->getData()['instance_id'])*/
{
if (!is_int($instance_id) and& ctype_digit($instance_id)) {
$instance_id = (integer) $instance_id;
}
if ($instance_id > 0) {
return $instance_id;
} else {
throw new InvalidArgumentException("Value '$instance_id' is not a valid instance ID");
}
} /*else {
throw new InvalidArgumentException('Instance ID not set');
}*/
}
}
const LICENSE_KEY = '123456';
const LICENSE_KEY = '123456/5';