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

ViewAwareAnnotationTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getViews() 0 3 1
1
<?php
2
3
namespace AmaTeam\ElasticSearch\API\Annotation\Mapping\Infrastructure;
4
5
trait ViewAwareAnnotationTrait
6
{
7
    /**
8
     * @var array<string>
9
     */
10
    public $views;
11
12
    /**
13
     * @return string[]|null
14
     */
15
    public function getViews(): ?array
16
    {
17
        return $this->views;
18
    }
19
}
20