Skip to content

Commit

Permalink
Type hint settings model
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens committed Nov 28, 2024
1 parent 67a408d commit 8689596
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions src/models/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,53 +14,49 @@
class Settings extends Model
{
/** @var string */
public $pluginName = 'Scout';
public string $pluginName = 'Scout';

/** @var bool */
public $sync = true;
public bool $sync = true;

/** @var bool */
public $indexRelations = true;
public bool $indexRelations = true;

/**
* @var bool
*
* @deprecated 4.0.0 Disabling the `queue` option will no longer be supported in the next version of Scout
*/
public $queue = true;
/** @var bool */
public bool $queue = true;

/** @var int */
public $ttr = 300;
public int $ttr = 300;

/** @var int */
public $priority = 1024;
public int $priority = 1024;

/** @var string */
public $engine = AlgoliaEngine::class;

/** @var ScoutIndex[] */
public $indices = [];
public array $indices = [];

/* @var string */
public $application_id = '';
public string $application_id = '';

/* @var string */
public $admin_api_key = '';
public string $admin_api_key = '';

/* @var string */
public $search_api_key = '';
public string $search_api_key = '';

/* @var int */
public $connect_timeout = 1;
public int $connect_timeout = 1;

/* @var int */
public $batch_size = 1000;
public int $batch_size = 1000;

/** @var bool */
public $useOriginalRecordIfSplitValueIsArrayOfOne = true;
public bool $useOriginalRecordIfSplitValueIsArrayOfOne = true;

/** @var string[] An array of ::class strings */
public $relatedElementTypes = [];
public array $relatedElementTypes = [];

public function fields(): array
{
Expand Down

0 comments on commit 8689596

Please sign in to comment.