1 | <?php |
||
14 | class ChangeAttribute |
||
15 | { |
||
16 | /** |
||
17 | * Name of the class to set the element(s) matched by a selector to |
||
18 | * @var string |
||
19 | */ |
||
20 | private $class; |
||
21 | |||
22 | /** |
||
23 | * Whether or not to hide the element(s) matched by a selector |
||
24 | * @var boolean |
||
25 | */ |
||
26 | private $hide; |
||
27 | |||
28 | /** |
||
29 | * Value of href attribute to add to element(s) matched by a selector |
||
30 | * @var string |
||
31 | */ |
||
32 | private $href; |
||
33 | |||
34 | /** |
||
35 | * Value of HTML attribute to add to element(s) matched by a selector |
||
36 | * @var string |
||
37 | */ |
||
38 | private $html; |
||
39 | |||
40 | /** |
||
41 | * Whether or not to remove the element(s) matched by a selector |
||
42 | * @var boolean |
||
43 | */ |
||
44 | private $remove; |
||
45 | |||
46 | /** |
||
47 | * Value of src attribute to add to element(s) matched by a selector |
||
48 | * @var string |
||
49 | */ |
||
50 | private $src; |
||
51 | |||
52 | /** |
||
53 | * Value of style attribute to add to element(s) matched by a selector |
||
54 | * @var string |
||
55 | */ |
||
56 | private $style; |
||
57 | |||
58 | /** |
||
59 | * Value of text attribute to add to the element(s) matched by a selector |
||
60 | * @var string |
||
61 | */ |
||
62 | private $text; |
||
63 | |||
64 | /** |
||
65 | * Constructor. |
||
66 | */ |
||
67 | 3 | public function __construct($options = array()) |
|
84 | |||
85 | /** |
||
86 | * Returns this object as array. |
||
87 | */ |
||
88 | 1 | public function toArray() |
|
110 | |||
111 | 2 | public function getClass() |
|
115 | |||
116 | 3 | public function setClass($class) |
|
120 | |||
121 | 2 | public function getHide() |
|
125 | |||
126 | 3 | public function setHide($hide) |
|
130 | |||
131 | 1 | public function getHref() |
|
135 | |||
136 | 3 | public function setHref($href) |
|
140 | |||
141 | 1 | public function getHtml() |
|
145 | |||
146 | 3 | public function setHtml($html) |
|
150 | |||
151 | 1 | public function getRemove() |
|
155 | |||
156 | 3 | public function setRemove($remove) |
|
160 | |||
161 | 1 | public function getSrc() |
|
165 | |||
166 | 3 | public function setSrc($src) |
|
170 | |||
171 | 1 | public function getStyle() |
|
175 | |||
176 | 3 | public function setStyle($style) |
|
180 | |||
181 | 1 | public function getText() |
|
185 | |||
186 | 3 | public function setText($text) |
|
190 | } |
||
191 | |||
196 |
According to the PSR-2, the body of a case statement must start on the line immediately following the case statement.
}
To learn more about the PSR-2 coding standard, please refer to the PHP-Fig.