Passed
Push — trunk ( 60c287...522604 )
by Christian
21:52 queued 08:22
created

DummyEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A getContext() 0 3 1
A getAvailableData() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Core\Test\Stub\Flow;
4
5
use Shopware\Core\Framework\Context;
6
use Shopware\Core\Framework\Event\EventData\EventDataCollection;
7
use Shopware\Core\Framework\Event\FlowEventAware;
8
use Shopware\Core\Framework\Log\Package;
9
use Symfony\Contracts\EventDispatcher\Event;
10
11
#[Package('core')]
12
class DummyEvent extends Event implements FlowEventAware
13
{
14
    public static function getAvailableData(): EventDataCollection
15
    {
16
        return new EventDataCollection();
17
    }
18
19
    public function getName(): string
20
    {
21
        return 'dummy.event';
22
    }
23
24
    public function getContext(): Context
25
    {
26
        return Context::createDefaultContext();
27
    }
28
}
29