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.
Completed
Pull Request — master (#24)
by Cees-Jan
09:45
created

RenderMarkdownCommand::getStream()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\CommandBus\Command;
4
5
use React\Stream\ReadableStreamInterface;
6
use WyriHaximus\Tactician\CommandHandler\Annotations\Handler;
7
8
/**
9
 * @Handler("ApiClients\Client\Github\CommandBus\Handler\RenderMarkdownHandler")
10
 */
11
final class RenderMarkdownCommand
12
{
13
    /**
14
     * @var ReadableStreamInterface
15
     */
16
    private $stream;
17
18
    /**
19
     * @var string
20
     */
21
    private $mode;
22
23
    /**
24
     * @var string
25
     */
26
    private $context;
27
28
    /**
29
     * @param ReadableStreamInterface $stream
30
     * @param string                  $mode
31
     * @param string                  $context
32
     */
33
    public function __construct(
34
        ReadableStreamInterface $stream,
35
        string $mode,
36
        string $context
37
    ) {
38
        $this->stream = $stream;
39
        $this->mode = $mode;
40
        $this->context = $context;
41
    }
42
43
    /**
44
     * @return ReadableStreamInterface
45
     */
46
    public function getStream(): ReadableStreamInterface
47
    {
48
        return $this->stream;
49
    }
50
51
    /**
52
     * @return string
53
     */
54
    public function getMode(): string
55
    {
56
        return $this->mode;
57
    }
58
59
    /**
60
     * @return string
61
     */
62
    public function getContext(): string
63
    {
64
        return $this->context;
65
    }
66
}
67