GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#7)
by Fábio Tadeu da
02:51 queued 11s
created

StubMapBased   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 5
dl 0
loc 28
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getDomainEvents() 0 3 1
A persist() 0 3 1
A __construct() 0 3 1
A convert() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Dsantang\DomainEventsDoctrine\Tests\Unit\Outbox\Stub;
6
7
use Doctrine\ORM\EntityManagerInterface;
8
use Doctrine\ORM\Event\OnFlushEventArgs;
9
use Dsantang\DomainEvents\DomainEvent;
10
use Dsantang\DomainEventsDoctrine\Outbox\EventsHandler;
11
use Dsantang\DomainEventsDoctrine\Outbox\OutboxEntry;
12
use Dsantang\DomainEventsDoctrine\Outbox\OutboxMappedSuperclass;
13
14
final class StubMapBased extends EventsHandler
15
{
16
    public function __construct(OutboxMappedSuperclass $outboxMappedSuperclass)
17
    {
18
        $this->outboxMappedSuperclass = $outboxMappedSuperclass;
19
    }
20
21
    /**
22
     * @return DomainEvent[] array
23
     */
24
    public function getDomainEvents(OnFlushEventArgs $eventArgs) : array
25
    {
26
        return parent::getDomainEvents($eventArgs);
27
    }
28
29
    public function persist(EntityManagerInterface $entityManager, OutboxEntry ...$outboxEntries) : void
30
    {
31
        parent::persist($entityManager, ...$outboxEntries);
32
    }
33
34
    /**
35
     * @return OutboxEntry[]
36
     *
37
     * @var DomainEvent[] $domainEvents
38
     */
39
    protected function convert(DomainEvent ...$domainEvents) : array
40
    {
41
        return [];
42
    }
43
}
44