SimpleReport   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 0
dl 0
loc 26
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getMessage() 0 4 1
A hasDetails() 0 4 1
A getDetails() 0 4 1
1
<?php
2
3
namespace Enzyme\Axiom\Reports;
4
5
class SimpleReport implements ReportInterface
6
{
7
    protected $message;
8
    protected $details;
9
10
    public function __construct($message, $details = [])
11
    {
12
        $this->message = $message;
13
        $this->details = $details;
14
    }
15
16
    public function getMessage()
17
    {
18
        return $this->message;
19
    }
20
21
    public function hasDetails()
22
    {
23
        return count($this->details) > 0;
24
    }
25
26
    public function getDetails()
27
    {
28
        return $this->details;
29
    }
30
}
31