Skip to content

Kirby 6.0.0

$props->all()

Returns all props of the class with their attribute, property, getter and setter method, sorted by name

$props->all(): array

Return type

array<string, array{attribute: Kirby\Reflection\Attributes\Prop, getter: ReflectionMethod|null, property: ReflectionProperty, setter: ReflectionMethod|null}>

Exceptions

Type Description
Kirby\Exception\LogicException if a getter or setter is invalid or two props are exported under the same name

Parent class

Kirby\Reflection\Props