0 follower

Interface Yiisoft\Yii\Debug\Storage\StorageInterface

Implemented byYiisoft\Yii\Debug\Storage\FileStorage, Yiisoft\Yii\Debug\Storage\MemoryStorage

Debug data storage responsibility is to store debug data from collectors added

Public Methods

Hide inherited methods

Method Description Defined By
clear() Clear storage data Yiisoft\Yii\Debug\Storage\StorageInterface
read() Read all data from storage Yiisoft\Yii\Debug\Storage\StorageInterface
write() Flush data from collectors into storage Yiisoft\Yii\Debug\Storage\StorageInterface

Method Details

Hide inherited methods

clear() public abstract method

Clear storage data

public abstract void clear ( )

                public function clear(): void;

            
read() public abstract method

Read all data from storage

public abstract array read ( string $type, ?string $id )
$type string

Type of data being read. Available types:

  • {@see \Yiisoft\Yii\Debug\Storage\TYPE_SUMMARY}
  • {@see \Yiisoft\Yii\Debug\Storage\TYPE_DATA}
  • {@see \Yiisoft\Yii\Debug\Storage\TYPE_OBJECTS}
$id ?string
return array

Data from storage

                public function read(string $type, ?string $id): array;

            
write() public abstract method

Flush data from collectors into storage

public abstract void write ( string $id, array[] $data, array $objectsMap, array $summary )
$id string
$data array[]
$objectsMap array
$summary array

                public function write(string $id, array $data, array $objectsMap, array $summary): void;