$value) { if (!is_string($key) || !is_string($value)) return false; } return true; } public function message() { return 'The dictionary must be an associative dictionary of strings'; } }