Completed
Push — master ( 4c3194...70467d )
by Bret R.
02:09 queued 55s
created

StatusCheckEvent::getChecker()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace BretRZaun\StatusPage\Event;
3
4
use Symfony\Contracts\EventDispatcher\Event;
5
use BretRZaun\StatusPage\StatusChecker;
6
7
class StatusCheckEvent extends Event
8
{
9
    /**
10
     * @var StatusChecker
11
     */
12
    private $checker;
13
14
    /**
15
     * @var bool
16
     */
17
    private $showDetails;
18
19
    public function __construct(StatusChecker $checker)
20
    {
21
        $this->checker = $checker;
22
    }
23
24
    public function getChecker(): StatusChecker
25
    {
26
        return $this->checker;
27
    }
28
29
    public function setShowDetails(bool $showDetails): void
30
    {
31
        $this->showDetails = $showDetails;
32
    }
33
34
    public function getShowDetails(): bool
35
    {
36
        return $this->showDetails;
37
    }
38
}