CodeIgniter v4.5 API

CastInterface

Interface CastInterface

The methods work at (1)(4) only. [App Code] --- (1) --> [Entity] --- (2) --> [Database] [App Code] <-- (4) --- [Entity] <-- (3) --- [Database]

Table of Contents

Methods

get()  : array<string|int, mixed>|bool|float|int|object|string|null
Takes a raw value from Entity, returns its value for PHP.
set()  : array<string|int, mixed>|bool|float|int|object|string|null
Takes a PHP value, returns its raw value for Entity.

Methods

get()

Takes a raw value from Entity, returns its value for PHP.

public static get(array<string|int, mixed>|bool|float|int|object|string|null $value[, array<string|int, mixed> $params = [] ]) : array<string|int, mixed>|bool|float|int|object|string|null
Parameters
$value : array<string|int, mixed>|bool|float|int|object|string|null

Data

$params : array<string|int, mixed> = []

Additional param

Return values
array<string|int, mixed>|bool|float|int|object|string|null

set()

Takes a PHP value, returns its raw value for Entity.

public static set(array<string|int, mixed>|bool|float|int|object|string|null $value[, array<string|int, mixed> $params = [] ]) : array<string|int, mixed>|bool|float|int|object|string|null
Parameters
$value : array<string|int, mixed>|bool|float|int|object|string|null

Data

$params : array<string|int, mixed> = []

Additional param

Return values
array<string|int, mixed>|bool|float|int|object|string|null

        
On this page

Search results