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

MessagesMappingSubscriber::getSubscribedEvents()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
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