Passed
Push — feature/initial-implementation ( 3b7c72...40c5a6 )
by Fike
01:49
created

ListenerProvider::getPropertyListeners()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AmaTeam\ElasticSearch\Entity\Annotation;
6
7
use AmaTeam\ElasticSearch\Entity\Annotation\Listener\Indexing\DocumentAnnotationListener;
8
use AmaTeam\ElasticSearch\Entity\Annotation\Listener\Mapping\Clazz\ClassParameterAnnotationListener;
9
use AmaTeam\ElasticSearch\Entity\Annotation\Listener\Mapping\Clazz\ClassTypeAnnotationListener;
10
use AmaTeam\ElasticSearch\Entity\Annotation\Listener\Mapping\Property\PropertyForcedViewsAnnotationListener;
11
use AmaTeam\ElasticSearch\Entity\Annotation\Listener\Mapping\Property\PropertyParameterAnnotationListener;
12
use AmaTeam\ElasticSearch\Entity\Annotation\Listener\Mapping\Property\PropertyTargetClassAnnotationListener;
13
use AmaTeam\ElasticSearch\Entity\Annotation\Listener\Mapping\Property\PropertyTypeAnnotationListener;
14
15
/**
16
 * Silly direct dependency decoupling
17
 */
18
class ListenerProvider
19
{
20
    public static function getClassListeners(): array
21
    {
22
        return [
23
            new DocumentAnnotationListener(),
24
            new ClassParameterAnnotationListener(),
25
            new ClassTypeAnnotationListener(),
26
        ];
27
    }
28
29
    public static function getPropertyListeners(): array
30
    {
31
        return [
32
            new PropertyTargetClassAnnotationListener(),
33
            new PropertyTypeAnnotationListener(),
34
            new PropertyParameterAnnotationListener(),
35
            new PropertyForcedViewsAnnotationListener(),
36
        ];
37
    }
38
}
39