DatabaseRecord
in package
Table of Contents
Properties
- $dbRecord : array<string|int, mixed>
Methods
- __construct() : mixed
- getBoolean() : bool
- getClass() : T
- getFloat() : float
- getInt() : int
- getIntEnum() : T
- getNullableInt() : int|null
- getNullableObject() : mixed
- getNullableString() : string|null
- getObject() : mixed
- getRow() : array<string, mixed>
- getString() : string
- getStringEnum() : T
Properties
$dbRecord read-only
private
array<string|int, mixed>
$dbRecord
Methods
__construct()
public
__construct(array<string, mixed> $dbRecord) : mixed
Parameters
- $dbRecord : array<string, mixed>
-
A record from a DatabaseResult.
getBoolean()
public
getBoolean(string $name) : bool
Parameters
- $name : string
Return values
boolgetClass()
public
getClass(string $name, T> $class[, bool $compressed = false ]) : T
Parameters
- $name : string
- $class : T>
- $compressed : bool = false
Tags
Return values
TgetFloat()
public
getFloat(string $name) : float
Parameters
- $name : string
Return values
floatgetInt()
public
getInt(string $name) : int
Parameters
- $name : string
Return values
intgetIntEnum()
public
getIntEnum(string $name, T> $enum) : T
Parameters
- $name : string
- $enum : T>
Tags
Return values
TgetNullableInt()
public
getNullableInt(string $name) : int|null
Parameters
- $name : string
Return values
int|nullgetNullableObject()
public
getNullableObject(string $name[, bool $compressed = false ]) : mixed
Parameters
- $name : string
- $compressed : bool = false
getNullableString()
public
getNullableString(string $name) : string|null
Parameters
- $name : string
Return values
string|nullgetObject()
public
getObject(string $name[, bool $compressed = false ]) : mixed
Parameters
- $name : string
- $compressed : bool = false
getRow()
public
getRow() : array<string, mixed>
Return values
array<string, mixed>getString()
public
getString(string $name) : string
Parameters
- $name : string
Return values
stringgetStringEnum()
public
getStringEnum(string $name, T> $enum) : T
Parameters
- $name : string
- $enum : T>