System\Classes\PresetManager

Overview

PresetManager class manages preset lists


Protected Properties

protected array $presets

presets collection of presets


Public Methods

public __construct()

public __construct(): void

public getPreset()

public getPreset($alias): array 

public hasPreset()

public hasPreset($alias): bool 

public static instance()

public static instance(): static 

instance creates a new instance of this singleton

public registerPreset()

public registerPreset($alias, $callback): void