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.

EventStore::append()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
ccs 0
cts 0
cp 0
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace SmoothPhp\Contracts\EventStore;
5
6
use SmoothPhp\Contracts\Domain\DomainEventStream;
7
use SmoothPhp\EventStore\EventStreamNotFound;
8
9
/**
10
 * Interface EventStore
11
 * @package SmoothPhp\EventStore
12
 * @author Simon Bennett <[email protected]>
13
 */
14
interface EventStore
15
{
16
    /**
17
     * @param string $id
18
     * @return DomainEventStream
19
     * @throws EventStreamNotFound
20
     */
21
    public function load(string $id) : DomainEventStream;
22
23
    /**
24
     * @param mixed $id
25
     * @param DomainEventStream $eventStream
26
     * @return void
27
     */
28
    public function append(string $id, DomainEventStream $eventStream) : void;
29
30
    /**
31
     * @param string[] $eventTypes
32
     * @return int
33
     */
34
    public function getEventCountByTypes(array $eventTypes) : int;
35
36
    /**
37
     * @param string[] $eventTypes
38
     * @param int $take
39
     * @return \Generator
40
     */
41
    public function getEventsByType(array $eventTypes, int $take) : \Generator;
42
43
    /**
44
     * @param string $streamId
45
     */
46
    public function deleteStream(string $streamId) : void;
47
}
48