Passed
Push — master ( c632e6...9034d7 )
by Dāvis
05:37
created

Alert   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 3 1
A getMessage() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
namespace Sludio\HelperBundle\Flash\Model;
4
5
class Alert implements AlertInterface
6
{
7
    private $type;
8
    private $message;
9
10
    public function __construct($type, $message)
11
    {
12
        $this->type = $type;
13
        $this->message = $message;
14
    }
15
16
    public function getType()
17
    {
18
        return $this->type;
19
    }
20
21
    public function getMessage()
22
    {
23
        return $this->message;
24
    }
25
}
26