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
Push — master ( be37ae...1ed430 )
by Christian
190:32 queued 121:52
created

StreamEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 3
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * (c) Christian Gripp <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Core23\DompdfBundle\Event;
13
14
use Dompdf\Dompdf;
15
use Symfony\Component\EventDispatcher\Event;
16
17
final class StreamEvent extends Event
18
{
19
    /**
20
     * @var Dompdf
21
     */
22
    private $pdf;
23
24
    /**
25
     * @var string
26
     */
27
    private $filename;
28
29
    /**
30
     * @var string
31
     */
32
    private $html;
33
34
    /**
35
     * @param Dompdf $pdf
36
     * @param string $filename
37
     * @param string $html
38
     */
39
    public function __construct(Dompdf $pdf, string $filename, string $html)
40
    {
41
        $this->pdf      = $pdf;
42
        $this->filename = $filename;
43
        $this->html     = $html;
44
    }
45
46
    /**
47
     * Returns the dompdf instance.
48
     *
49
     * @return Dompdf
50
     */
51
    public function getPdf(): Dompdf
52
    {
53
        return $this->pdf;
54
    }
55
56
    /**
57
     * Returns the filename.
58
     *
59
     * @return string
60
     */
61
    public function getFilename(): string
62
    {
63
        return $this->filename;
64
    }
65
66
    /**
67
     * Returns the html.
68
     *
69
     * @return string
70
     */
71
    public function getHtml(): string
72
    {
73
        return $this->html;
74
    }
75
}
76