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

        if ($this->keyStore->isRegisteredAsArrayTableKey($key)) {
            throw new DumpException("The table \"{$key}\" has already been defined as previous array of tables.");
        }

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

        if ($this->keyStore->isRegisteredAsArrayTableKey($key)) {
            throw new DumpException("The table \"{$key}\" has already been defined as previous array of tables.");
        }

        $this->keyStore->addTableKey($key);
    }
protected function addTableKey ( string $ key ) : void { if ( ! $ this -> keyStore -> isValidTableKey ( $ key ) ) { throw new DumpException ( "The table key \"{$key}\" has already been defined previously." ) ; } if ( $ this -> keyStore -> isRegisteredAsArrayTableKey ( $ key ) ) { throw new DumpException ( "The table \"{$key}\" has already been defined as previous array of tables." ) ; } $ this -> keyStore -> addTableKey ( $ key ) ; }
Adds a table key to the store

@param string $key The table key name

@return void
Adds a table key to the store