protected function getStore(string $name = null): PDO
    {
        $name = $name ?? $this->app->config()['database']['default'];

        if (isset($this->stores[$name])) {
            return $this->stores[$name];
        }

        $config = $this->getStoreConfig($name);

        return $this->stores[$name] = $this->getStoreFromConfig($config);
    }
protected function getStore(string $name = null): PDO
    {
        $name = $name ?? $this->app->config()['database']['default'];

        if (isset($this->stores[$name])) {
            return $this->stores[$name];
        }

        $config = $this->getStoreConfig($name);

        return $this->stores[$name] = $this->getStoreFromConfig($config);
    }
protected function getStore ( string $ name = null ) : PDO { $ name = $ name ?? $ this -> app -> config ( ) [ 'database' ] [ 'default' ] ; if ( isset ( $ this -> stores [ $ name ] ) ) { return $ this -> stores [ $ name ] ; } $ config = $ this -> getStoreConfig ( $ name ) ; return $ this -> stores [ $ name ] = $ this -> getStoreFromConfig ( $ config ) ; }
Get a pdo store by name.

@param string|null $name

@throws InvalidArgumentException

@return PDO
Get a pdo store by name .