src/SQLCache.php
private function getStatement($method, $sql)
    {
        if (empty($this->statements[$method])) {
            $this->statements[$method] = $this->conn->prepare($sql);
        }
        return $this->statements[$method];
    }
private function getStatement($method, $sql)
    {
        if (empty($this->statements[$method])) {
            $this->statements[$method] = $this->conn->prepare($sql);
        }
        return $this->statements[$method];
    }
private function getStatement ( $ method , $ sql ) { if ( empty ( $ this -> statements [ $ method ] ) ) { $ this -> statements [ $ method ] = $ this -> conn -> prepare ( $ sql ) ; } return $ this -> statements [ $ method ] ; }
Get a prepared statement for the given method's SQL.

The result is stored internally to limit repeated preparing of SQL.

@param string $method The method name to for which this statement applies.
@param string $sql The SQL statement associated with the given method.
@return \PDOStatement Returns the prepared statement for the given method.
Get a prepared statement for the given method s SQL .