model = $model; } public static function getInstance( SettingsModel $model ): self { if ( ! isset( self::$instance ) ) { self::$instance = new self( $model ); } return self::$instance; } /** * Gets all settings */ public function getSettings(): array { return $this->model->getSettings(); } /** * Get supported fields * @return array */ public function getSupportedFields(): array { return $this->model->getSupportedFields(); } }