Completed
Push — master ( af9880...c194aa )
by Tristan
02:05
created

SimpleReport::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
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