URICast
extends BaseCast
in package
(PHP) [URI --> string] --> (DB driver) --> (DB column) string [ <-- string] <-- (DB driver) <-- (DB column) string
Tags
Table of Contents
Methods
- get() : TPhpNativeValue
- Takes a value from a data source, returns its value for PHP.
- set() : TDataSourceValue
- Takes a PHP value, returns its value for a data source.
- invalidTypeValueError() : never
Methods
get()
Takes a value from a data source, returns its value for PHP.
public
static get(mixed $value[, array<string|int, mixed> $params = [] ][, object|null $helper = null ]) : TPhpNativeValue
Parameters
- $value : mixed
-
Data from database driver
- $params : array<string|int, mixed> = []
-
Additional param
- $helper : object|null = null
-
Helper object. E.g., database connection
Return values
TPhpNativeValueset()
Takes a PHP value, returns its value for a data source.
public
static set(mixed $value[, array<string|int, mixed> $params = [] ][, object|null $helper = null ]) : TDataSourceValue
Parameters
- $value : mixed
-
PHP native value
- $params : array<string|int, mixed> = []
-
Additional param
- $helper : object|null = null
-
Helper object. E.g., database connection
Return values
TDataSourceValueinvalidTypeValueError()
protected
static invalidTypeValueError(mixed $value) : never
Parameters
- $value : mixed