PostDelete   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 12
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2
ccs 0
cts 5
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 6 1
1
<?php
2
3
namespace PeekAndPoke\Component\Slumber\Annotation\Slumber\Store\ListeningTo;
4
5
use Doctrine\Common\Annotations\Annotation;
6
use PeekAndPoke\Component\Slumber\Annotation\ClassPostDeleteListenerMarker;
7
use PeekAndPoke\Component\Slumber\Data\Events\PostDeleteEvent;
8
9
/**
10
 * @Annotation
11
 * @Annotation\Target("CLASS")
12
 *
13
 * @author Karsten J. Gerber <[email protected]>
14
 */
15
class PostDelete extends AbstractListenerMarker implements ClassPostDeleteListenerMarker
16
{
17
    /**
18
     * @param PostDeleteEvent $event
19
     */
20
    public function execute(PostDeleteEvent $event)
21
    {
22
        $handler = $this->getService($event->getProvider());
23
24
        $handler($event);
25
    }
26
}
27