Model/TokenConfig.php
public function getKey(string $key = null): string
    {
        if ($key === null) {
            return $this->defaultKey;
        }

        if (!isset($this->tokens[$key])) {
            throw new \LogicException(sprintf('Token with name %s could not be found', $key));
        }

        return $key;
    }
public function getKey(string $key = null): string
    {
        if ($key === null) {
            return $this->defaultKey;
        }

        if (!isset($this->tokens[$key])) {
            throw new \LogicException(sprintf('Token with name %s could not be found', $key));
        }

        return $key;
    }
public function getKey ( string $ key = null ) : string { if ( $ key === null ) { return $ this -> defaultKey ; } if ( ! isset ( $ this -> tokens [ $ key ] ) ) { throw new \ LogicException ( sprintf ( 'Token with name %s could not be found' , $ key ) ) ; } return $ key ; }
Get the key from the argument or the default key.
Get the key from the argument or the default key .