Passed
Push — master ( cc4e78...1262d4 )
by Damian
04:08
created

addPropertyNameResolver()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BitBag\SyliusElasticsearchPlugin\PropertyNameResolver;
6
7
final class SearchPropertyNameResolverRegistry implements SearchPropertyNameResolverRegistryInterface
8
{
9
    /** @var ConcatedNameResolverInterface[] */
10
    private $propertyNameResolvers = [];
11
12
    public function addPropertyNameResolver(ConcatedNameResolverInterface $propertyNameResolver): void
13
    {
14
        $this->propertyNameResolvers[] = $propertyNameResolver;
15
    }
16
17
    /**
18
     * @return ConcatedNameResolverInterface[]
19
     */
20
    public function getPropertyNameResolvers(): array
21
    {
22
        return $this->propertyNameResolvers;
23
    }
24
}
25