@@ -12,23 +12,23 @@ trait ValidationTrait
1212 /**
1313 * @throws ValidationException
1414 */
15- private function validateQuery (string $ query , string $ name ): void
15+ protected function validateQuery (string $ query , string $ name ): void
1616 {
1717 Validator::notBlank ()->assert ($ query , $ name );
1818 }
1919
2020 /**
2121 * @throws ValidationException
2222 */
23- private function validatePositive (int $ number , string $ name ): void
23+ protected function validatePositive (int $ number , string $ name ): void
2424 {
2525 Validator::greaterThan (0 )->assert ($ number , $ name );
2626 }
2727
2828 /**
2929 * @throws ValidationException
3030 */
31- private function validateCoordinate (float $ latitude , float $ longitude ): void
31+ protected function validateCoordinate (float $ latitude , float $ longitude ): void
3232 {
3333 Validator::range (-90 , 90 )->assert ($ latitude , 'latitude ' );
3434 Validator::range (-180 , 180 )->assert ($ longitude , 'longitude ' );
@@ -37,31 +37,31 @@ private function validateCoordinate(float $latitude, float $longitude): void
3737 /**
3838 * @throws ValidationException
3939 */
40- private function validateCountryCode (string $ countryCode ): void
40+ protected function validateCountryCode (string $ countryCode ): void
4141 {
4242 Validator::country ()->assert ($ countryCode , 'countryCode ' );
4343 }
4444
4545 /**
4646 * @throws ValidationException
4747 */
48- private function validateLanguage (string $ language ): void
48+ protected function validateLanguage (string $ language ): void
4949 {
5050 Validator::choice (Language::getOptions ())->assert ($ language , 'language ' );
5151 }
5252
5353 /**
5454 * @throws ValidationException
5555 */
56- private function validateUnitSystem (string $ unitSystem ): void
56+ protected function validateUnitSystem (string $ unitSystem ): void
5757 {
5858 Validator::choice (UnitSystem::getOptions ())->assert ($ unitSystem , 'unitSystem ' );
5959 }
6060
6161 /**
6262 * @throws ValidationException
6363 */
64- private function validateDateOrder (\DateTimeInterface $ startDate , \DateTimeInterface $ endDate ): void
64+ protected function validateDateOrder (\DateTimeInterface $ startDate , \DateTimeInterface $ endDate ): void
6565 {
6666 Validator::greaterThan (
6767 constraint: $ startDate ,
0 commit comments