Passed
Push — dev ( 40f0b5...3a2e98 )
by Fike
02:50
created

AbstractParameterAnnotation::getValue()   A

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
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AmaTeam\ElasticSearch\API\Annotation\Mapping\Parameter\Infrastructure;
6
7
use AmaTeam\ElasticSearch\API\Annotation\Mapping\Infrastructure\ViewAwareAnnotationInterface;
8
9
/**
10
 * @SuppressWarnings(PHPMD.NumberOfChildren)
11
 */
12
abstract class AbstractParameterAnnotation implements ParameterAnnotationInterface, ViewAwareAnnotationInterface
13
{
14
    public $value;
15
16
    /**
17
     * @var array<string>
18
     */
19
    public $views;
20
21
    /**
22
     * @return mixed
23
     */
24
    public function getValue()
25
    {
26
        return $this->value;
27
    }
28
29
    /**
30
     * @return array
31
     */
32
    public function getViews(): ?array
33
    {
34
        return $this->views;
35
    }
36
}
37