Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 14 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| _TypesXData | |
0.00% |
0 / 14 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| getLocalXCodes | |
0.00% |
0 / 7 |
|
0.00% |
0 / 1 |
2 | |||
| getXMessageTemplates | |
0.00% |
0 / 7 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /** @noinspection SpellCheckingInspection */ |
| 3 | |
| 4 | /** |
| 5 | * @author: Doug Wilbourne (dougwilbourne@gmail.com) |
| 6 | * @noinspection PhpCSValidationInspection |
| 7 | */ |
| 8 | |
| 9 | declare(strict_types=1); |
| 10 | |
| 11 | namespace pvc\struct\types\err; |
| 12 | |
| 13 | use pvc\err\XDataAbstract; |
| 14 | |
| 15 | class _TypesXData extends XDataAbstract |
| 16 | { |
| 17 | |
| 18 | public function getLocalXCodes(): array |
| 19 | { |
| 20 | return [ |
| 21 | SetNextIdException::class => 1001, |
| 22 | InvalidKeyException::class => 1002, |
| 23 | NonExistentKeyException::class => 1003, |
| 24 | InvalidValueException::class => 1005, |
| 25 | NonExistentIdTesterException::class => 1006, |
| 26 | ]; |
| 27 | } |
| 28 | |
| 29 | public function getXMessageTemplates(): array |
| 30 | { |
| 31 | return [ |
| 32 | SetNextIdException::class => 'Cannot set next id to a value less than 0.', |
| 33 | InvalidKeyException::class => 'Invalid id/key ${invalidKey}', |
| 34 | NonExistentKeyException::class => 'non-existent id/key ${nonExistentKey}', |
| 35 | InvalidValueException::class => 'invalid value detected', |
| 36 | NonExistentIdTesterException::class => 'cannot set id type, id/key tester not set', |
| 37 | ]; |
| 38 | } |
| 39 | } |