Component evidence
Manages Typesense search presets for API operations.
// Source: https://github.com/typesense/typesense-php | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
<?php
namespace Typesense;
use Http\Client\Exception as HttpClientException;
use Typesense\Exceptions\TypesenseClientError;
/**
* Class Preset
*
* @package \Typesense
*/
class Preset
{
/**
* @var string
*/
private string $presetName;
/**
* @var ApiCall
*/
private ApiCall $apiCall;
/**
* Preset constructor.
*
* @param string $presetName
* @param ApiCall $apiCall
*/
public function __construct(string $presetName, ApiCall $apiCall)
{
$this->presetName = $presetName;
$this->apiCall = $ap
... (truncated -- full source via MCP)