protected validateKey ( string $key ) | ||
$key | string |
protected function validateKey($key)
{
if (!in_array($key, self::$validKeys)) {
throw new InvalidArgumentException('Unsupported key "%s" passed to LinkedIn data storage. Valid keys are: %s', $key, implode(', ', self::$validKeys));
}
}