Passed
Push — feature/initial-implementation ( fae671...591f29 )
by Fike
02:37
created

Replicas   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 5
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getOption() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AmaTeam\ElasticSearch\API\Annotation\Indexing;
6
7
use AmaTeam\ElasticSearch\API\Annotation\Indexing\Infrastructure\AbstractIntegerOptionAnnotation;
8
use AmaTeam\ElasticSearch\API\Indexing\OptionInterface;
9
use AmaTeam\ElasticSearch\Indexing\Option\NumberOfReplicasOption;
10
11
/**
12
 * @Annotation
13
 * @Target("CLASS")
14
 */
15
class Replicas extends AbstractIntegerOptionAnnotation
16
{
17
    public function getOption(): OptionInterface
18
    {
19
        return NumberOfReplicasOption::getInstance();
20
    }
21
}
22