Documentation

Row
in package

FinalYes

Table of Contents

Properties

$row  : array<string|int, mixed>|object

Methods

from()  : Row
select()  : array<string|int, mixed>
Tries to retrieve multiple values from a record.
value()  : mixed
Tries to retrieve a single value from a record.
__construct()  : mixed
camelCase()  : string
getArrayEntry()  : array<string|int, mixed>
getObjectPropertyValue()  : array<string|int, mixed>

Properties

$row read-only

private array<string|int, mixed>|object $row

Methods

from()

public static from(mixed $value) : Row
Parameters
$value : mixed
Return values
Row

select()

Tries to retrieve multiple values from a record.

public select(string|int ...$key) : array<string|int, mixed>

If the value is an array and the key is an integer the content will be retrieved from the array_values array form. Negative offset are supported. If the value is an object, the key MUST be a string.

Parameters
$key : string|int
Tags
throws
ReflectionException
throws
QueryException

If the value can not be retrieved

Return values
array<string|int, mixed>

value()

Tries to retrieve a single value from a record.

public value(string|int $key) : mixed
Parameters
$key : string|int
Tags
throws
ReflectionException
throws
QueryException

If the value can not be retrieved

see
Row::select()

__construct()

private __construct(array<string|int, mixed>|object $row) : mixed
Parameters
$row : array<string|int, mixed>|object

camelCase()

private static camelCase(string $value[, string $prefix = '' ]) : string
Parameters
$value : string
$prefix : string = ''
Return values
string

getArrayEntry()

private getArrayEntry(array<string|int, mixed> $row, string|int ...$keys) : array<string|int, mixed>
Parameters
$row : array<string|int, mixed>
$keys : string|int
Tags
throws
QueryException
Return values
array<string|int, mixed>

getObjectPropertyValue()

private static getObjectPropertyValue(object $row, string|int ...$keys) : array<string|int, mixed>
Parameters
$row : object
$keys : string|int
Tags
throws
ReflectionException
throws
QueryException
Return values
array<string|int, mixed>

        
On this page

Search results