Completed
Push — develop ( aab709...2637a1 )
by Tino
06:10
created

OutputPageExceptionEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getThrowable() 0 3 1
1
<?php
2
3
/**
4
 * Copyright (c) by the ACP3 Developers.
5
 * See the LICENSE file at the top-level module directory for licensing details.
6
 */
7
8
namespace ACP3\Core\Application\Event;
9
10
use Symfony\Component\EventDispatcher\Event;
11
12
class OutputPageExceptionEvent extends Event
13
{
14
    /**
15
     * @var \Throwable
16
     */
17
    private $throwable;
18
19
    public function __construct(\Throwable $throwable)
20
    {
21
        $this->throwable = $throwable;
22
    }
23
24
    /**
25
     * @return \Throwable
26
     */
27
    public function getThrowable(): \Throwable
28
    {
29
        return $this->throwable;
30
    }
31
}
32