Completed
Push — master ( 53d06e...6d4188 )
by Hugues
11:02
created

MessagesMappingSubscriber   A

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 onClassMetadataNotDound() 0 3 1
A loadClassMetadata() 0 3 1
1
<?php
2
3
namespace HMLB\DDDBundle\Doctrine\ORM;
4
5
use Doctrine\Common\EventSubscriber;
6
use Doctrine\Common\Persistence\Event\LoadClassMetadataEventArgs;
7
use Doctrine\ORM\Event\OnClassMetadataNotFoundEventArgs;
8
use Doctrine\ORM\Events;
9
10
/**
11
 * MessagesMappingSubscriber.
12
 *
13
 * @author Hugues Maignol <[email protected]>
14
 */
15
class MessagesMappingSubscriber implements EventSubscriber
16
{
17
    public function getSubscribedEvents()
18
    {
19
        return [
20
            Events::loadClassMetadata,
21
            Events::onClassMetadataNotFound,
22
        ];
23
    }
24
25
    public function onClassMetadataNotDound(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...
26
    {
27
    }
28
29
    /**
30
     * @para
31
     */
32
    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...
33
    {
34
    }
35
}
36