Alert   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 40
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getType() 0 4 1
A getMessage() 0 4 1
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
}