| | 19 | * prefix of the value to filter |
|---|
| | 20 | * |
|---|
| | 21 | * @var string |
|---|
| | 22 | */ |
|---|
| | 23 | protected $prefix = ''; |
|---|
| | 24 | /** |
|---|
| | 25 | * postfix of the value to filter |
|---|
| | 26 | * |
|---|
| | 27 | * @var string |
|---|
| | 28 | */ |
|---|
| | 29 | protected $postfix = ''; |
|---|
| | 30 | |
|---|
| | 31 | /** |
|---|
| | 32 | * constructor |
|---|
| | 33 | * |
|---|
| | 34 | * @param string $prefix prefix of the value to filter |
|---|
| | 35 | * @param string $postfix postfix of the value to filter |
|---|
| | 36 | */ |
|---|
| | 37 | public function __construct($prefix = '', $postfix = '') |
|---|
| | 38 | { |
|---|
| | 39 | $this->setPrefix($prefix); |
|---|
| | 40 | $this->setPostfix($postfix); |
|---|
| | 41 | } |
|---|
| | 42 | |
|---|
| | 43 | /** |
|---|
| | 44 | * sets the prefix |
|---|
| | 45 | * |
|---|
| | 46 | * @param string $prefix prefix of the value to filter |
|---|
| | 47 | */ |
|---|
| | 48 | public function setPrefix($prefix) |
|---|
| | 49 | { |
|---|
| | 50 | $this->prefix = $prefix; |
|---|
| | 51 | } |
|---|
| | 52 | |
|---|
| | 53 | /** |
|---|
| | 54 | * sets the postfix |
|---|
| | 55 | * |
|---|
| | 56 | * @param string $postfix postfix of the value to filter |
|---|
| | 57 | */ |
|---|
| | 58 | public function setPostfix($postfix) |
|---|
| | 59 | { |
|---|
| | 60 | $this->postfix = $postfix; |
|---|
| | 61 | } |
|---|
| | 62 | |
|---|
| | 63 | /** |
|---|