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
03:44 queued 46s
created

ThirdOutboxEntry::getPayload()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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 ThirdOutboxEntry implements OutboxEntry
13
{
14
    /** @var DomainEvent */
15
    private $domainEvent;
16
17
    public function __construct(DomainEvent $domainEvent)
18
    {
19
        $this->domainEvent = $domainEvent;
20
    }
21
22
    public function getName() : string
23
    {
24
        return 'CustomerDeleted';
25
    }
26
27
    public function getAggregateId() : UuidInterface
28
    {
29
        return Uuid::fromString('49ca1f44-56ec-11e9-8647-d663bd873d93');
30
    }
31
32
    public function getAggregateType() : string
33
    {
34
        return 'CustomerType';
35
    }
36
37
    public function getPayloadType() : string
38
    {
39
        return 'CustomerDetails';
40
    }
41
42
    public function getMessageKey() : string
43
    {
44
        return 'ba70d882';
45
    }
46
47
    public function getMessageRoute() : string
48
    {
49
        return 'event.customer';
50
    }
51
52
    public function getMessageType() : string
53
    {
54
        return $this->domainEvent->getName();
55
    }
56
57
    public function getPayload() : string
58
    {
59
        return '{\"foo\":\"bar\"}';
60
    }
61
62
    public function getSchemaVersion() : int
63
    {
64
        return 2;
65
    }
66
}
67