final class adhoc_task_dto extends abstract_dto

internal  
 

Data Transfer Object for adhoc tasks.

Represents a snapshot of an adhoc task, independent of the Moodle core API.

Methods

array
jsonSerialize()

Default implementation to serialize to JSON using the array representation.

__construct(string $classname, string $component, int|null $userid, int $nextruntime, string $customdata, int $faildelay, bool $running, int $id)

Constructor.

array
to_array()

Convert the DTO to an associative array.

to_object()

Convert the DTO to a stdClass.

Details

in abstract_dto at line 38
array jsonSerialize()

Default implementation to serialize to JSON using the array representation.

Return Value

array

at line 44
__construct(string $classname, string $component, int|null $userid, int $nextruntime, string $customdata, int $faildelay, bool $running, int $id)

Constructor.

Parameters

string $classname
string $component
int|null $userid
int $nextruntime
string $customdata
int $faildelay
bool $running
int $id

at line 68
array to_array()

Convert the DTO to an associative array.

Return Value

array

at line 83
stdClass to_object()

Convert the DTO to a stdClass.

Return Value

stdClass