Internal storage linkage

From Sunhill Framework Documentation

When writing own property classes you can overwrite the createStorage() method that returns an instance of a storage.

Example:

use Sunhill\Storages\AbstractStorage;

class MyProperty extends AbstractProperty
{
...
    protected function createStorage(): ?AbstractStorage
    {
        return new MyStorage();
    }
...
}

Everytime MyProperty is used and the value of the property is retrieved for the first time, an instance of MyStorage is created and used as a storage.