Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
8 / 8 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| _FilterVarXData | |
100.00% |
8 / 8 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| getLocalXCodes | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
1 | |||
| getXMessageTemplates | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @package pvcRegex |
| 5 | * @author: Doug Wilbourne (dougwilbourne@gmail.com) |
| 6 | * @noinspection PhpCSValidationInspection |
| 7 | */ |
| 8 | |
| 9 | declare (strict_types=1); |
| 10 | |
| 11 | namespace pvc\filtervar\err; |
| 12 | |
| 13 | use pvc\err\XDataAbstract; |
| 14 | use pvc\interfaces\err\XDataInterface; |
| 15 | |
| 16 | /** |
| 17 | * Class _FilterVarXData |
| 18 | */ |
| 19 | class _FilterVarXData extends XDataAbstract implements XDataInterface |
| 20 | { |
| 21 | |
| 22 | public function getLocalXCodes(): array |
| 23 | { |
| 24 | return [ |
| 25 | InvalidFilterException::class => 1000, |
| 26 | InvalidLabelException::class => 1001, |
| 27 | ]; |
| 28 | } |
| 29 | |
| 30 | public function getXMessageTemplates(): array |
| 31 | { |
| 32 | return [ |
| 33 | InvalidFilterException::class => 'error trying to set filter to an invalid value.', |
| 34 | InvalidLabelException::class => 'error setting label to an invalid value - cannot be an empty string.' |
| 35 | ]; |
| 36 | } |
| 37 | } |