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.

SecondOutboxEntry::getMessageRoute()   A
last analyzed

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
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Dsantang\DomainEventsDoctrine\Tests\Unit\Outbox\Stub\OutboxEntries;
6
7
use Dsantang\DomainEvents\DomainEvent;
8
use Dsantang\DomainEventsDoctrine\Outbox\OutboxEntry;
9
use Ramsey\Uuid\Uuid;
10
use Ramsey\Uuid\UuidInterface;
11
12
final class SecondOutboxEntry implements OutboxEntry
13
{
14
    private DomainEvent $domainEvent;
15
16
    public function __construct(DomainEvent $domainEvent)
17
    {
18
        $this->domainEvent = $domainEvent;
19
    }
20
21
    public function getName(): string
22
    {
23
        return 'CartCreated';
24
    }
25
26
    public function getAggregateId(): UuidInterface
27
    {
28
        return Uuid::fromString('cece22ea-57ae-11e9-8647-d663bd873d93');
29
    }
30
31
    public function getAggregateType(): string
32
    {
33
        return 'Cart';
34
    }
35
36
    public function getPayloadType(): string
37
    {
38
        return 'CartType';
39
    }
40
41
    public function getMessageKey(): string
42
    {
43
        return 'af422e7a';
44
    }
45
46
    public function getMessageRoute(): string
47
    {
48
        return 'snapshot.cart';
49
    }
50
51
    public function getMessageType(): string
52
    {
53
        return $this->domainEvent->getName();
54
    }
55
56
    /**
57
     * @return mixed[]
58
     */
59
    public function getPayload(): array
60
    {
61
        return ['foo' => 'bar'];
62
    }
63
64
    public function getSchemaVersion(): int
65
    {
66
        return 1;
67
    }
68
}
69