MessagesMappingSubscriber::loadClassMetadata()   A
last analyzed

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
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 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