1 | <?php |
||
29 | trait ValidatorTrait |
||
30 | { |
||
31 | /** |
||
32 | * Filter Csv control character |
||
33 | * |
||
34 | * @param string $char Csv control character |
||
35 | * @param string $type Csv control character type |
||
36 | * @param string $caller public API method calling the method |
||
37 | * |
||
38 | * @throws LengthException If the Csv control character is not one character only. |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | 12 | protected function filterControl(string $char, string $type, string $caller): string |
|
50 | |||
51 | |||
52 | /** |
||
53 | * Filter Header Offset |
||
54 | * |
||
55 | * @param int|null $value |
||
56 | * @param int $min_range |
||
57 | * @param string $error_message |
||
58 | * |
||
59 | * @throws TypError if value is not a type integer or null |
||
60 | * @throws OutOfRangeException if value is not in a valid int range |
||
61 | */ |
||
62 | 18 | protected function filterNullableInteger($value, int $min_range, string $error_message) |
|
76 | } |
||
77 |