1 | <?php |
||
52 | class RequireDotNotationPath |
||
53 | { |
||
54 | /** |
||
55 | * throws exceptions if $path is not a valid dot.notation.support path |
||
56 | * |
||
57 | * @param string $path |
||
58 | * the path to check |
||
59 | * @param string $eUnsupportedType |
||
60 | * the class to use when throwing an unsupported-type exception |
||
61 | * @param string $eNotDotNotationPath |
||
62 | * the class to use when throwing a not-dot-notation-path exception |
||
63 | * @return void |
||
64 | */ |
||
65 | public static function check($path, $eUnsupportedType = E4xx_UnsupportedType::class, $eNotDotNotationPath = E4xx_NotDotNotationPath::class) |
||
75 | |||
76 | /** |
||
77 | * throws exceptions if $path is not a valid dot.notation.support path |
||
78 | * |
||
79 | * @param string $path |
||
80 | * the path to check |
||
81 | * @param string $eUnsupportedType |
||
82 | * the class to use when throwing an unsupported-type exception |
||
83 | * @param string $eNotDotNotationPath |
||
84 | * the class to use when throwing a not-dot-notation-path exception |
||
85 | * @return void |
||
86 | */ |
||
87 | public function __invoke($path, $eUnsupportedType = E4xx_UnsupportedType::class, $eNotDotNotationPath = E4xx_NotDotNotationPath::class) |
||
91 | |||
92 | /** |
||
93 | * throws exceptions if $path is not a valid dot.notation.support path |
||
94 | * |
||
95 | * @deprecated since 2.2.0 |
||
96 | * @codeCoverageIgnore |
||
97 | * |
||
98 | * @param string $path |
||
99 | * the path to check |
||
100 | * @param string $eUnsupportedType |
||
101 | * the class to use when throwing an unsupported-type exception |
||
102 | * @param string $eNotDotNotationPath |
||
103 | * the class to use when throwing a not-dot-notation-path exception |
||
104 | * @return void |
||
105 | */ |
||
106 | public static function checkMixed($path, $eUnsupportedType = E4xx_UnsupportedType::class, $eNotDotNotationPath = E4xx_NotDotNotationPath::class) |
||
110 | |||
111 | } |