1 | <?php |
||
21 | abstract class AbstractAlert implements AlertInterface { |
||
22 | |||
23 | /** |
||
24 | * Content. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | private $content; |
||
29 | |||
30 | /** |
||
31 | * Dismissible. |
||
32 | * |
||
33 | * @var bool |
||
34 | */ |
||
35 | private $dismissible; |
||
36 | |||
37 | /** |
||
38 | * Type. |
||
39 | * |
||
40 | * @var string |
||
41 | */ |
||
42 | private $type; |
||
43 | |||
44 | /** |
||
45 | * Constructor. |
||
46 | * |
||
47 | * @param string type. |
||
48 | */ |
||
49 | protected function __construct($type) { |
||
52 | |||
53 | /** |
||
54 | * {@inheritDoc} |
||
55 | */ |
||
56 | public function getContent() { |
||
59 | |||
60 | /** |
||
61 | * {@inheritDoc} |
||
62 | */ |
||
63 | public function getDismissible() { |
||
66 | |||
67 | /** |
||
68 | * {@inheritDoc} |
||
69 | */ |
||
70 | public function getPrefix() { |
||
73 | |||
74 | /** |
||
75 | * {@inheritDoc} |
||
76 | */ |
||
77 | public function getType() { |
||
80 | |||
81 | /** |
||
82 | * {@inheritDoc} |
||
83 | */ |
||
84 | public function setContent($content) { |
||
88 | |||
89 | /** |
||
90 | * {@inheritDoc} |
||
91 | */ |
||
92 | public function setDismissible($dismissible) { |
||
96 | |||
97 | /** |
||
98 | * {@inheritDoc} |
||
99 | */ |
||
100 | public function setType($type) { |
||
104 | } |
||
105 |