Sindbad~EG File Manager

Current Path : /opt/nginxhttpd_/vendor/doctrine/orm/src/Internal/Hydration/
Upload File :
Current File : //opt/nginxhttpd_/vendor/doctrine/orm/src/Internal/Hydration/ScalarHydrator.php

<?php

declare(strict_types=1);

namespace Doctrine\ORM\Internal\Hydration;

/**
 * Hydrator that produces flat, rectangular results of scalar data.
 * The created result is almost the same as a regular SQL result set, except
 * that column names are mapped to field names and data type conversions take place.
 */
class ScalarHydrator extends AbstractHydrator
{
    /**
     * {@inheritDoc}
     */
    protected function hydrateAllData()
    {
        $result = [];

        while ($data = $this->statement()->fetchAssociative()) {
            $this->hydrateRowData($data, $result);
        }

        return $result;
    }

    /**
     * {@inheritDoc}
     */
    protected function hydrateRowData(array $row, array &$result)
    {
        $result[] = $this->gatherScalarRowData($row);
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists