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