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

FlashMessage::setContent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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