MessagesMappingSubscriber   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 21
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getSubscribedEvents() 0 7 1
A loadClassMetadata() 0 3 1
A onClassMetadataNotFound() 0 3 1
1
<?php
2
3
declare (strict_types = 1);
4
5
namespace HMLB\DDDBundle\Doctrine\ORM;
6
7
use Doctrine\Common\EventSubscriber;
8
use Doctrine\Common\Persistence\Event\LoadClassMetadataEventArgs;
9
use Doctrine\ORM\Event\OnClassMetadataNotFoundEventArgs;
10
use Doctrine\ORM\Events;
11
12
/**
13
 * MessagesMappingSubscriber.
14
 *
15
 * @author Hugues Maignol <[email protected]>
16
 */
17
class MessagesMappingSubscriber implements EventSubscriber
18
{
19
    public function getSubscribedEvents()
20
    {
21
        return [
22
            Events::loadClassMetadata,
23
            Events::onClassMetadataNotFound,
24
        ];
25
    }
26
27
    public function onClassMetadataNotFound(OnClassMetadataNotFoundEventArgs $event)
0 ignored issues
show
Unused Code introduced by
The parameter $event is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
28
    {
29
    }
30
31
    /**
32
     * @para
33
     */
34
    public function loadClassMetadata(LoadClassMetadataEventArgs $eventArgs)
0 ignored issues
show
Unused Code introduced by
The parameter $eventArgs is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
35
    {
36
    }
37
}
38