store->getByRef($name, $ref, $default); } public function put(string $name, mixed $value, string $type, int $ref = 0): bool { return $this->store->setWithRef($name, $ref, $value, $type); } public function delete(string $name, int $ref = 0): bool { return $this->store->deleteByRef($name, $ref); } public function ofType(string $type): array { return array_values(array_map(static fn (array $row): array => [ 'name' => (string) $row['option_name'], 'ref' => (int) $row['ref_id'], 'value' => $row['option_value'], ], $this->store->getByType($type))); } }