public static function file($value, $message = null, $propertyPath = null)
{
static::string($value, $message, $propertyPath);
static::notEmpty($value, $message, $propertyPath);
if (!is_file($value)) {
$message = sprintf($message ?: 'File "%s" was expected to exist.', static::stringify($value));
throw static::createException($value, $message, static::INVALID_FILE, $propertyPath);
}
return true;
}