Ubiquity  2.0.2
php rapid development framework
FlashMessage.php
Go to the documentation of this file.
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  }
18  public function getContent() {
19  return $this->content;
20  }
21 
25  public function getType() {
26  return $this->type;
27  }
28 
32  public function getIcon() {
33  return $this->icon;
34  }
35 
39  public function setContent($content) {
40  $this->content = $content;
41  }
42 
46  public function setType($type) {
47  $this->type = $type;
48  }
49 
53  public function setIcon($icon) {
54  $this->icon = $icon;
55  }
56 
57 }
58 
__construct($type, $content, $icon=null)