Result
- Full name:
\Pseudo\Result
Properties
rows
private array<int|string,array<int|string,mixed>> $rows
executionResult
private ?bool $executionResult
isParameterized
private bool $isParameterized
errorCode
private string $errorCode
errorInfo
private string $errorInfo
affectedRowCount
private int $affectedRowCount
insertId
private int $insertId
rowOffset
private int $rowOffset
params
private array<int|string,mixed> $params
Methods
__construct
public __construct(array<int|string,array<int|string,mixed>>|null $rows = null, array<int|string,mixed>|null $params = null, bool|null $executionResult = null): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$rows |
array |
|
$params |
array |
|
$executionResult |
bool|null |
addRow
public addRow(array<int|string,mixed> $row, array<int|string,mixed> $params = null): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$row |
array |
|
$params |
array |
Throws:
setParams
public setParams(array<int|string,mixed> $params, bool $parameterize = false): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$params |
array |
|
$parameterize |
bool |
getRows
public getRows(array<int|string,mixed> $params = []): array<int|string,array<int|string,mixed>>|array<int|string,mixed>
Parameters:
| Parameter | Type | Description |
|---|---|---|
$params |
array |
Throws:
getRowIfExists
Returns the next row if it exists, otherwise returns false
private getRowIfExists(array<int|string,mixed> $rows): false|array<int|string,mixed>
Parameters:
| Parameter | Type | Description |
|---|---|---|
$rows |
array |
Rows to get row from |
Return Value:
Next row (false if it doesn't exist)
nextRow
Returns the next available row if it exists, otherwise returns false
public nextRow(): false|array<int|string,mixed>
setInsertId
public setInsertId(int $insertId): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$insertId |
int |
getInsertId
public getInsertId(): int
setErrorCode
public setErrorCode(string $errorCode): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$errorCode |
string |
Throws:
getErrorCode
public getErrorCode(): string
setErrorInfo
public setErrorInfo(string $errorInfo): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$errorInfo |
string |
getErrorInfo
public getErrorInfo(): string
setAffectedRowCount
public setAffectedRowCount(int $affectedRowCount): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$affectedRowCount |
int |
getAffectedRowCount
public getAffectedRowCount(): int
isOrdinalArray
public isOrdinalArray(array<int|string,mixed> $arr): bool
Parameters:
| Parameter | Type | Description |
|---|---|---|
$arr |
array |
reset
public reset(): void
hasExecutionResult
public hasExecutionResult(): bool
getExecutionResult
public getExecutionResult(): bool
Throws:
stringifyParameterSet
private stringifyParameterSet(array<int|string,mixed> $params): string
Parameters:
| Parameter | Type | Description |
|---|---|---|
$params |
array |
initializeParameterizedRows
private initializeParameterizedRows(string $parameterKey, array<int|string,mixed> $row): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$parameterKey |
string | |
$row |
array |
addNonParameterizedRow
private addNonParameterizedRow(array<int|string,mixed> $row): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$row |
array |
Throws:
Automatically generated on 2025-05-14