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

DummyEvent::getAvailableData()   A

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