Passed
Push — feature/initial-implementation ( fb0c51...553b70 )
by Fike
02:25
created

IndexOptions   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getParameter() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AmaTeam\ElasticSearch\API\Annotation\Mapping\Parameter;
6
7
use AmaTeam\ElasticSearch\API\Annotation\Mapping\Parameter\Infrastructure\AbstractParameterAnnotation;
8
use AmaTeam\ElasticSearch\Mapping\Type\Parameter\IndexOptionsParameter;
9
10
/**
11
 * @Annotation
12
 * @Target({"CLASS", "PROPERTY"})
13
 */
14
class IndexOptions extends AbstractParameterAnnotation
15
{
16
    /**
17
     * @Enum({
18
     *     AmaTeam\ElasticSearch\Mapping\Type\Parameter\IndexOptionsParameter::OFFSETS,
19
     *     AmaTeam\ElasticSearch\Mapping\Type\Parameter\IndexOptionsParameter::POSITIONS,
20
     *     AmaTeam\ElasticSearch\Mapping\Type\Parameter\IndexOptionsParameter::FREQUENCIES,
21
     *     AmaTeam\ElasticSearch\Mapping\Type\Parameter\IndexOptionsParameter::DOCUMENTS
22
     * })
23
     * @var string
24
     */
25
    public $value;
26
27
    public function getParameter(): string
28
    {
29
        return IndexOptionsParameter::FRIENDLY_ID;
30
    }
31
}
32