Contao\Database\Result::__construct PHP Méthode

__construct() public méthode

Validate the connection resource and store the query string
public __construct ( Doctrine\DBAL\Driver\Statement $statement, string $strQuery )
$statement Doctrine\DBAL\Driver\Statement The database statement
$strQuery string The query string
    public function __construct(DoctrineStatement $statement, $strQuery)
    {
        $this->resResult = $statement;
        $this->strQuery = $strQuery;
        $this->resultSet = $statement->fetchAll(\PDO::FETCH_ASSOC);
    }