Skip to content

Kirby 4.5.0

new Model()

Model constructor

new Model(Kirby\Api\Api $api, object|array|string|null $data, array $schema)

Parameters

Name Type Default
$api * Kirby\Api\Api
$data * object|array|string|null
$schema * array

Exceptions

Type Description
Exception

Parent class

Kirby\Api\Model