Documentation

AiPrompt extends BaseModel
in package

Table of Contents

Properties

$action  : string
$aiModelId  : string|null
$aiProviderId  : int|null
$config  : array<string|int, mixed>
$createdAt  : string
$createdBy  : int|null
$enabledProjectIds  : array<string|int, int>
$id  : int
$isEnabled  : bool
$isFineTuningAvailable  : bool
$lastUsedAt  : string|null
$lastUsedBy  : int|null
$name  : string
$promptPreview  : string|null
$updatedAt  : string
$updatedBy  : int|null
$usageCount  : int

Methods

__construct()  : mixed
getAction()  : string
getAiModelId()  : string|null
getAiProviderId()  : int|null
getConfig()  : array<string|int, mixed>
getCreatedAt()  : string
getCreatedBy()  : int|null
getEnabledProjectIds()  : array<string|int, mixed>
getId()  : int
getLastUsedAt()  : string|null
getLastUsedBy()  : int|null
getName()  : string
getPromptPreview()  : string|null
getUpdatedAt()  : string
getUpdatedBy()  : int|null
getUsageCount()  : int
isEnabled()  : bool
isFineTuningAvailable()  : bool
setAction()  : void
setAiModelId()  : void
setAiProviderId()  : void
setConfig()  : void
setEnabledProjectIds()  : void
setName()  : void

Properties

$aiModelId

protected string|null $aiModelId

$aiProviderId

protected int|null $aiProviderId

$config

protected array<string|int, mixed> $config

$createdBy

protected int|null $createdBy

$enabledProjectIds

protected array<string|int, int> $enabledProjectIds

$isFineTuningAvailable

protected bool $isFineTuningAvailable

$lastUsedAt

protected string|null $lastUsedAt

$lastUsedBy

protected int|null $lastUsedBy

$promptPreview

protected string|null $promptPreview

$updatedBy

protected int|null $updatedBy

Methods

__construct()

public __construct([array<string|int, mixed> $data = [] ]) : mixed
Parameters
$data : array<string|int, mixed> = []

getAction()

public getAction() : string
Return values
string

getAiModelId()

public getAiModelId() : string|null
Return values
string|null

getAiProviderId()

public getAiProviderId() : int|null
Return values
int|null

getConfig()

public getConfig() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCreatedAt()

public getCreatedAt() : string
Return values
string

getCreatedBy()

public getCreatedBy() : int|null
Return values
int|null

getEnabledProjectIds()

public getEnabledProjectIds() : array<string|int, mixed>
Return values
array<string|int, mixed>

getId()

public getId() : int
Return values
int

getLastUsedAt()

public getLastUsedAt() : string|null
Return values
string|null

getLastUsedBy()

public getLastUsedBy() : int|null
Return values
int|null

getName()

public getName() : string
Return values
string

getPromptPreview()

public getPromptPreview() : string|null
Return values
string|null

getUpdatedAt()

public getUpdatedAt() : string
Return values
string

getUpdatedBy()

public getUpdatedBy() : int|null
Return values
int|null

getUsageCount()

public getUsageCount() : int
Return values
int

isEnabled()

public isEnabled() : bool
Return values
bool

isFineTuningAvailable()

public isFineTuningAvailable() : bool
Return values
bool

setAction()

public setAction(string $action) : void
Parameters
$action : string

setAiModelId()

public setAiModelId(string|null $aiModelId) : void
Parameters
$aiModelId : string|null

setAiProviderId()

public setAiProviderId(int|null $aiProviderId) : void
Parameters
$aiProviderId : int|null

setConfig()

public setConfig(array<string|int, mixed> $config) : void
Parameters
$config : array<string|int, mixed>

setEnabledProjectIds()

public setEnabledProjectIds(array<string|int, mixed> $enabledProjectIds) : void
Parameters
$enabledProjectIds : array<string|int, mixed>

setName()

public setName(string $name) : void
Parameters
$name : string
On this page

Search results