Skip to content

Commit

Permalink
PHP82-66: Remove all dynamic properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Cruz Vincenti committed Dec 13, 2023
1 parent e47ff6b commit c8a2bc5
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/ConfigurationIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ class ConfigurationIndex
const TYPE_CONFIGURATION = 'configuration';
const PRIMARY_ID = 'primary';

/**
* @var \Elasticsearch\Client
*/
private $engine;

/**
* @var \Psr\Log\LoggerInterface
*/
private $logger;

/**
* @var string
*/
private $configurationIndexName;

/**
* Mapping for configuration index.
*
Expand Down
5 changes: 5 additions & 0 deletions src/IndexRotator.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ class IndexRotator
*/
private $primaryIndexStrategy;

/**
* @var \Psr\Log\LoggerInterface
*/
private $logger;

/**
* Constructor.
*
Expand Down
16 changes: 16 additions & 0 deletions src/Strategy/AliasStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@

class AliasStrategy implements PrimaryIndexStrategy
{

/**
* @var \Elasticsearch\Client
*/
protected $engine;

/**
* @var \Psr\Log\LoggerInterface
*/
protected $logger;

/**
* @var array
*/
protected $options;

/**
* Constructor.
*
Expand Down
16 changes: 16 additions & 0 deletions src/Strategy/ConfigurationStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,22 @@

class ConfigurationStrategy implements PrimaryIndexStrategy
{

/**
* @var \Elasticsearch\Client
*/
private $engine;

/**
* @var \Psr\Log\LoggerInterface
*/
private $logger;

/**
* @var array
*/
private $options;

/**
* Constructor.
*
Expand Down

0 comments on commit c8a2bc5

Please sign in to comment.