Happyr\LinkedIn\Storage\BaseDataStorage::validateKey PHP Method

validateKey() protected method

Validate key. Throws an exception if key is not valid.
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));
        }
    }