src/Cache.php
/**
     * Throw an exception if the key is not valid
     *
     * @param string $key
     *
     * @return void
     */
Throw an exception if the key is not valid
@param string $key

@return void
Throw an exception if the key is not valid @param string $key @return void
protected function assertValidKey(string $key)
    {
        if ($this->validKey($key) === false) {
            throw new InvalidKeyException($key);
        }
    }
protected function assertValidKey ( string $ key ) { if ( $ this -> validKey ( $ key ) === false ) { throw new InvalidKeyException ( $ key ) ; } }
Throw an exception if the key is not valid
 @param string $key
Throw an exception if the key is not valid @param string $key