Completed
Push — master ( 8bcc1d...04c30e )
by Jean-Christophe
03:22
created

FlashMessage   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 7
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 53
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getContent() 0 3 1
A getType() 0 3 1
A getIcon() 0 3 1
A setContent() 0 3 1
A setType() 0 3 1
A setIcon() 0 3 1
1
<?php
2
3
namespace Ubiquity\utils\flash;
4
5
class FlashMessage {
6
	protected $content;
7
	protected $type;
8
	protected $icon;
9
10
	public function __construct($type,$content,$icon=null){
11
		$this->type=$type;
12
		$this->content=$content;
13
		$this->icon=$icon;
14
	}
15
	/**
16
	 * @return mixed
17
	 */
18
	public function getContent() {
19
		return $this->content;
20
	}
21
22
	/**
23
	 * @return mixed
24
	 */
25
	public function getType() {
26
		return $this->type;
27
	}
28
29
	/**
30
	 * @return mixed
31
	 */
32
	public function getIcon() {
33
		return $this->icon;
34
	}
35
36
	/**
37
	 * @param mixed $content
38
	 */
39
	public function setContent($content) {
40
		$this->content = $content;
41
	}
42
43
	/**
44
	 * @param mixed $type
45
	 */
46
	public function setType($type) {
47
		$this->type = $type;
48
	}
49
50
	/**
51
	 * @param mixed $icon
52
	 */
53
	public function setIcon($icon) {
54
		$this->icon = $icon;
55
	}
56
57
}
58
59