StatusCheckEvent   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 7
c 1
b 0
f 1
dl 0
loc 30
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setShowDetails() 0 3 1
A getShowDetails() 0 3 1
A getChecker() 0 3 1
A __construct() 0 3 1
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
}