Passed
Push — feature/initial-implementation ( 79751f...3b7c72 )
by Fike
01:53
created

AbstractParameterAnnotation   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 23
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 3 1
A getViews() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AmaTeam\ElasticSearch\API\Annotation\Mapping;
6
7
/**
8
 * @SuppressWarnings(PHPMD.NumberOfChildren)
9
 */
10
abstract class AbstractParameterAnnotation implements ParameterAnnotationInterface, ViewAwareAnnotationInterface
11
{
12
    public $value;
13
14
    /**
15
     * @var array<string>
16
     */
17
    public $views;
18
19
    /**
20
     * @return mixed
21
     */
22
    public function getValue()
23
    {
24
        return $this->value;
25
    }
26
27
    /**
28
     * @return array
29
     */
30
    public function getViews(): ?array
31
    {
32
        return $this->views;
33
    }
34
}
35