class DoormanQueuedJobTask implements Task, Expires, Process, Cancellable (View source)

Properties

protected int $id
protected QueuedJobDescriptor|null $descriptor

Methods

protected
refreshDescriptor()

Reload descriptor from DB

public
null|int
getId()

No description

public
$this
setId(int $id)

No description

public
getDescriptor()

No description

public
__construct(QueuedJobDescriptor $descriptor)

No description

public
array
__serialize()

No description

public
void
__unserialize(array $data)

No description

public
string
serialize() deprecated

The __serialize() magic method will be automatically used instead of this

public
unserialize($serialized) deprecated

The __unserialize() magic method will be automatically used instead of this almost all the time This method will be automatically used if existing serialized data was not saved as an associative array and the PHP version used in less than PHP 9.0

public
string
getHandler()

No description

public
array
getData()

No description

public
bool
ignoresRules()

No description

public
bool
stopsSiblings()

No description

public
int
getExpiresIn()

No description

public
bool
shouldExpire(int $startedAt)

No description

public
bool
canRunTask()

No description

public
bool
isCancelled()

No description

Details

protected refreshDescriptor()

Reload descriptor from DB

null|int getId()

No description

Return Value

null|int

$this setId(int $id)

No description

Parameters

int $id

Return Value

$this

QueuedJobDescriptor getDescriptor()

No description

Return Value

QueuedJobDescriptor

__construct(QueuedJobDescriptor $descriptor)

No description

Parameters

QueuedJobDescriptor $descriptor

array __serialize()

No description

Return Value

array

void __unserialize(array $data)

No description

Parameters

array $data

Return Value

void

string serialize() deprecated

deprecated 4.11.0 Use __serialize() instead

The __serialize() magic method will be automatically used instead of this

Return Value

string

unserialize($serialized) deprecated

deprecated 4.11.0 Use __unserialize() instead

The __unserialize() magic method will be automatically used instead of this almost all the time This method will be automatically used if existing serialized data was not saved as an associative array and the PHP version used in less than PHP 9.0

Parameters

$serialized

Exceptions

InvalidArgumentException

string getHandler()

No description

Return Value

string

array getData()

No description

Return Value

array

bool ignoresRules()

No description

Return Value

bool

bool stopsSiblings()

No description

Return Value

bool

int getExpiresIn()

No description

Return Value

int

bool shouldExpire(int $startedAt)

No description

Parameters

int $startedAt

Return Value

bool

bool canRunTask()

No description

Return Value

bool

bool isCancelled()

No description

Return Value

bool