Alert::getType()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Alert.php
4
 * Definition of class Alert
5
 *
6
 * Created 29/08/14 00:08
7
 *
8
 * @author Rasanga Perera <[email protected]>
9
 * Copyright (c) 2014, The MIT License (MIT)
10
 */
11
12
namespace Ras\Bundle\FlashAlertBundle\Model;
13
14
15
class Alert implements AlertInterface
16
{
17
18
    /**
19
     * @var string
20
     */
21
    private $type;
22
23
    /**
24
     * @var string
25
     */
26
    private $message;
27
28
    /**
29
     * @param string $type
30
     * @param string $message
31
     */
32
    public function __construct($type, $message)
33
    {
34
        $this->type = $type;
35
        $this->message = $message;
36
    }
37
38
    /**
39
     * @return string
40
     */
41
    public function getType()
42
    {
43
        return $this->type;
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function getMessage()
50
    {
51
        return $this->message;
52
    }
53
54
}