* @link https://getkirby.com * @copyright Bastian Allgeier * @license https://opensource.org/licenses/MIT */ abstract class OptionsProvider { public Options|null $options = null; /** * Returns options as array */ public function render(ModelWithContent $model) { return $this->resolve($model)->render($model); } abstract public function resolve(ModelWithContent $model): Options; }