protected function addKey(string $key) : void
    {
        if (!$this->keyStore->isValidKey($key)) {
            throw new DumpException("The key \"{$key}\" has already been defined previously.");
        }

        $this->keyStore->addKey($key);
    }
protected function addKey(string $key) : void
    {
        if (!$this->keyStore->isValidKey($key)) {
            throw new DumpException("The key \"{$key}\" has already been defined previously.");
        }

        $this->keyStore->addKey($key);
    }
protected function addKey ( string $ key ) : void { if ( ! $ this -> keyStore -> isValidKey ( $ key ) ) { throw new DumpException ( "The key \"{$key}\" has already been defined previously." ) ; } $ this -> keyStore -> addKey ( $ key ) ; }
Adds a key to the store

@param string $key The key name

@return void
Adds a key to the store