Documentation

LedgerName extends Model
in package
Uses HasFactory

Multilingual support for account names

Tags
mixin

Builder

Table of Contents

CODE_SIZE  = 8
$created_at  : Carbon
$id  : int
$language  : string
$name  : string
$ownerUuid  : string
$updated_at  : Carbon
create()  :
createFromMessage()  : self
getWildcard()  : Builder
localize()  : string
Get the name of a specific UUID in the first matching language.
toMessage()  : Name
toResponse()  : array<string|int, mixed>

Constants

Properties

$created_at

public Carbon $created_at

When the record was created.

$language

public string $language

The language code for this name.

$name

public string $name

The ledger entity name.

$ownerUuid

public string $ownerUuid

ID of the entity this name applies to.

$updated_at

public Carbon $updated_at

When the record was updated.

Methods

create()

public static create(array<string|int, mixed> $attributes) :

Provided by model.

Parameters
$attributes : array<string|int, mixed>
Return values

createFromMessage()

public static createFromMessage(Name $message) : self
Parameters
$message : Name
Return values
self

getWildcard()

public static getWildcard(string $ownerUuid, string $wildcard) : Builder
Parameters
$ownerUuid : string
$wildcard : string
Return values
Builder

localize()

Get the name of a specific UUID in the first matching language.

public static localize(string $ownerUuid, array<string|int, mixed> $languages) : string
Parameters
$ownerUuid : string
$languages : array<string|int, mixed>
Return values
string

toResponse()

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

Search results