Skip to content

Kirby 6.0.0

new Prop()

new Prop(list $aliases = [], bool $computed = false, mixed $default = null, string|bool $export = true, string|null $getter = null, string|null $setter = null)

Parameters

Name Type Default Description
$aliases list<string> [] Other names the prop can be set with
$computed bool false
$default mixed null
$export stringorbool true
$getter stringornull null
$setter stringornull null

Parent class

Kirby\Reflection\Attributes\Prop