<?phpnamespaceipl\Stdlib\Contract;interfaceValidator{/** * Get whether the given value is valid * * @param mixed $value * * @return bool */publicfunctionisValid($value);/** * Get the validation error messages * * @return array */publicfunctiongetMessages();}