ElasticsearchContext   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 19
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getCurrentDataTrackerIndex() 0 3 1
A __construct() 0 2 1
A getActivityLogIndex() 0 3 1
A getClassName() 0 3 1
1
<?php
2
3
namespace Locastic\Loggastic\Bridge\Elasticsearch\Context;
4
5
final class ElasticsearchContext implements ElasticsearchContextInterface
6
{
7
    public function __construct(private readonly string $className, private readonly string $activityLogIndex, private readonly string $currentDataTrackerIndex)
8
    {
9
    }
10
11
    public function getActivityLogIndex(): string
12
    {
13
        return $this->activityLogIndex;
14
    }
15
16
    public function getCurrentDataTrackerIndex(): string
17
    {
18
        return $this->currentDataTrackerIndex;
19
    }
20
21
    public function getClassName(): string
22
    {
23
        return $this->className;
24
    }
25
}
26