src/Loggers/Clockwork/DoctrineDataSource.php
protected function getDatabaseQueries()
    {
        $queries = [];
        foreach ($this->logger->queries as $query) {
            $queries[] = [
                'query'      => $this->formatter->format($this->connection->getDatabasePlatform(), $query['sql'], $query['params']),
                'duration'   => $query['executionMS'] * 1000,
                'connection' => $this->connection->getDriver()->getName()
            ];
        }

        return $queries;
    }
protected function getDatabaseQueries()
    {
        $queries = [];
        foreach ($this->logger->queries as $query) {
            $queries[] = [
                'query'      => $this->formatter->format($this->connection->getDatabasePlatform(), $query['sql'], $query['params']),
                'duration'   => $query['executionMS'] * 1000,
                'connection' => $this->connection->getDriver()->getName()
            ];
        }

        return $queries;
    }
protected function getDatabaseQueries ( ) { $ queries = [ ] ; foreach ( $ this -> logger -> queries as $ query ) { $ queries [ ] = [ 'query' => $ this -> formatter -> format ( $ this -> connection -> getDatabasePlatform ( ) , $ query [ 'sql' ] , $ query [ 'params' ] ) , 'duration' => $ query [ 'executionMS' ] * 1000 , 'connection' => $ this -> connection -> getDriver ( ) -> getName ( ) ] ; } return $ queries ; }
Returns an array of runnable queries and their durations from the internal array
Returns an array of runnable queries and their durations from the internal array