| 1 | <?php |
||
| 15 | trait ValidatorTrait |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * validate the input parameter in the config file is not missed. |
||
| 19 | * |
||
| 20 | * @param $parameter |
||
| 21 | * |
||
| 22 | * @return mixed |
||
| 23 | * |
||
| 24 | * @throws \Vinelab\UrlShortener\Validators\MissingConfigurationException |
||
| 25 | */ |
||
| 26 | public function validateConfiguration($parameter) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * validate response is OK (200). |
||
| 37 | * |
||
| 38 | * @param $code |
||
| 39 | * |
||
| 40 | * @throws \Vinelab\UrlShortener\Validators\ResponseErrorException |
||
| 41 | */ |
||
| 42 | public function validateResponseCode($code) |
||
| 48 | } |
||
| 49 |