Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
8 / 8 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
_TreeSearchXData | |
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 | /** @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\treesearch\err; |
12 | |
13 | use pvc\err\XDataAbstract; |
14 | |
15 | class _TreeSearchXData extends XDataAbstract |
16 | { |
17 | |
18 | public function getLocalXCodes(): array |
19 | { |
20 | return [ |
21 | SetMaxSearchLevelsException::class => 1003, |
22 | StartNodeUnsetException::class => 1016, |
23 | ]; |
24 | } |
25 | |
26 | public function getXMessageTemplates(): array |
27 | { |
28 | return [ |
29 | SetMaxSearchLevelsException::class => 'Max levels to search must be > 0, actual supplied = ${badLevels}.', |
30 | StartNodeUnsetException::class => 'start node must be set before searching or resetting the search.', |
31 | ]; |
32 | } |
33 | } |