PrePersistSubscriber::getSubscribedEvents()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
/**
3
 * This file is part of the Cubiche package.
4
 *
5
 * Copyright (c) Cubiche
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace Cubiche\Domain\EventSourcing\Tests\Fixtures\Listener;
11
12
use Cubiche\Domain\EventPublisher\DomainEventSubscriberInterface;
13
use Cubiche\Domain\EventSourcing\Event\PrePersistEvent;
14
15
/**
16
 * PrePersistSubscriber class.
17
 *
18
 * @author Ivannis Suárez Jerez <[email protected]>
19
 */
20
class PrePersistSubscriber extends PrePersistListener implements DomainEventSubscriberInterface
21
{
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public static function getSubscribedEvents()
26
    {
27
        return array(
28
            PrePersistEvent::class => 'onPrePersist',
29
        );
30
    }
31
}
32