public function retrieve_query(string $hash): ?array
  {
    if ( isset($this->queries[$hash]) ){
      if ( \is_string($this->queries[$hash]) ){
        $hash = $this->queries[$hash];
      }
      return $this->queries[$hash];
    }
    return null;
  }
public function retrieve_query(string $hash): ?array
  {
    if ( isset($this->queries[$hash]) ){
      if ( \is_string($this->queries[$hash]) ){
        $hash = $this->queries[$hash];
      }
      return $this->queries[$hash];
    }
    return null;
  }
public function retrieve_query ( string $ hash ) : ? array { if ( isset ( $ this -> queries [ $ hash ] ) ) { if ( \ is_string ( $ this -> queries [ $ hash ] ) ) { $ hash = $ this -> queries [ $ hash ] ; } return $ this -> queries [ $ hash ] ; } return null ; }
Retrieves a query array based on its hash.
@param string $hash
@return array|null
Retrieves a query array based on its hash .