src/RunOpenCode/ExchangeRate/Repository/DoctrineDbalRepository.php
private function buildRateFromTableRowData(array $row)
    {
        return new Rate(
            $row['source_name'],
            (float)$row['rate_value'],
            $row['currency_code'],
            $row['rate_type'],
            \DateTime::createFromFormat('Y-m-d', $row['rate_date']),
            $row['base_currency_code'],
            \DateTime::createFromFormat('Y-m-d H:i:s', $row['created_at']),
            \DateTime::createFromFormat('Y-m-d H:i:s', $row['modified_at'])
        );
    }
private function buildRateFromTableRowData(array $row)
    {
        return new Rate(
            $row['source_name'],
            (float)$row['rate_value'],
            $row['currency_code'],
            $row['rate_type'],
            \DateTime::createFromFormat('Y-m-d', $row['rate_date']),
            $row['base_currency_code'],
            \DateTime::createFromFormat('Y-m-d H:i:s', $row['created_at']),
            \DateTime::createFromFormat('Y-m-d H:i:s', $row['modified_at'])
        );
    }
Build rate from table row data.

@param array $row Row data.

@return Rate