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

AbstractParameterAnnotation::getViews()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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