ElasticsearchContext::getClassName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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