Additional properties to File Object

Is it somehow possible to add more properties to a Kirby\Cms\File Object?

This does not work:

$file->myinformation = 'information';
echo $file->myinformation // 'information'

No, that’s not possible. You can create a clone and modify properties, but you can’t add any properties the object is not supposed to have.

1 Like