Skip to content

Kirby 4.5.0

$collection->__set()

Validate the type of every item that is being added to the collection. They need to have the class defined by static::TYPE.

$collection->__set(string $key, $value): void

Parameters

Name Type Default
$key * string
$value * mixed

Parent class

Kirby\Blueprint\Collection