Task
in package
implements
JsonSerializable
FinalYes
This is a text to image task
Tags
Table of Contents
Interfaces
- JsonSerializable
Constants
- STATUS_FAILED = 4
- STATUS_RUNNING = 2
- STATUS_SCHEDULED = 1
- STATUS_SUCCESSFUL = 3
- STATUS_UNKNOWN = 0
Properties
- $appId : string
- $completionExpectedAt : DateTime|null
- $id : int|null
- $identifier : string|null
- $input : string
- $numberOfImages : int
- $status : int
- $userId : string|null
Methods
- __construct() : mixed
- getAppId() : string
- getCompletionExpectedAt() : DateTime|null
- getId() : int|null
- getIdentifier() : null|string
- getInput() : string
- getNumberOfImages() : int
- getOutputImages() : array<string|int, IImage>|null
- getStatus() : int
- getUserId() : string|null
- jsonSerialize() : array<string|int, mixed>
- setCompletionExpectedAt() : void
- setId() : void
- setStatus() : void
Constants
STATUS_FAILED
public
mixed
STATUS_FAILED
= 4
Tags
STATUS_RUNNING
public
mixed
STATUS_RUNNING
= 2
Tags
STATUS_SCHEDULED
public
mixed
STATUS_SCHEDULED
= 1
Tags
STATUS_SUCCESSFUL
public
mixed
STATUS_SUCCESSFUL
= 3
Tags
STATUS_UNKNOWN
public
mixed
STATUS_UNKNOWN
= 0
Tags
Properties
$appId
protected
string
$appId
$completionExpectedAt
protected
DateTime|null
$completionExpectedAt
= null
$id
protected
int|null
$id
= null
$identifier
protected
string|null
$identifier
= ''
$input
protected
string
$input
$numberOfImages
protected
int
$numberOfImages
$status
protected
int
$status
= self::STATUS_UNKNOWN
Tags
$userId
protected
string|null
$userId
Methods
__construct()
public
final __construct(string $input, string $appId, int $numberOfImages, string|null $userId[, null|string $identifier = '' ]) : mixed
Parameters
- $input : string
- $appId : string
- $numberOfImages : int
- $userId : string|null
- $identifier : null|string = ''
-
An arbitrary identifier for this task. max length: 255 chars
Tags
getAppId()
public
final getAppId() : string
Tags
Return values
stringgetCompletionExpectedAt()
public
final getCompletionExpectedAt() : DateTime|null
Tags
Return values
DateTime|nullgetId()
public
final getId() : int|null
Tags
Return values
int|nullgetIdentifier()
public
final getIdentifier() : null|string
Tags
Return values
null|stringgetInput()
public
final getInput() : string
Tags
Return values
stringgetNumberOfImages()
public
final getNumberOfImages() : int
Tags
Return values
intgetOutputImages()
public
final getOutputImages() : array<string|int, IImage>|null
Tags
Return values
array<string|int, IImage>|nullgetStatus()
public
final getStatus() : int
Tags
Return values
intgetUserId()
public
final getUserId() : string|null
Tags
Return values
string|nulljsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>setCompletionExpectedAt()
public
final setCompletionExpectedAt(DateTime|null $at) : void
Parameters
- $at : DateTime|null
Tags
setId()
public
final setId(int|null $id) : void
Parameters
- $id : int|null
Tags
setStatus()
public
final setStatus(int $status) : void
Parameters
- $status : int