1 | <?php |
||
18 | class Append extends FilterRule |
||
19 | { |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $append; |
||
24 | |||
25 | /** |
||
26 | * Set text to append |
||
27 | * |
||
28 | * @param string $append |
||
29 | */ |
||
30 | 4 | public function __construct($append) |
|
34 | |||
35 | /** |
||
36 | * Append the provided text to the given value |
||
37 | * |
||
38 | * @param mixed $value |
||
39 | * @return string |
||
40 | */ |
||
41 | 4 | public function filter($value) |
|
45 | } |
||
46 |