SimpleStorage

From Sunhill Framework Documentation

When writing an own storage based on a SimpleStorage you have to overwrite only one method

readValues(): array

This function returns an associated array that is taken as a base for serving data.

Example:

use Sunhill\Storages\SimpleStorage;

class MySimpleStorage extends SimpleStorage
{
  protected function readValues(): array
  {
     return ['keyA'=>'ValueA','keyB'=>12.3,'keyC'=>[1,2,3]];
  }

}