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

@param string $key

@throws InvalidArgumentException
Validate key . Throws an exception if key is not valid .