new Model()
Model constructor
new Model(Kirby\Api\Api $api, object|array|string|null $data, array $schema)
Parameters
| Name | Type | Default |
|---|---|---|
| $apirequired | Kirby\Api\Api |
no default value |
| $data | objectorarrayorstringornull |
no default value |
| $schemarequired | array |
no default value |
Exceptions
| Type | Description |
|---|---|
Exception |