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

Alert::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
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