zend-db icon indicating copy to clipboard operation
zend-db copied to clipboard

Reading data from profiler

Open vaclavvanik opened this issue 7 years ago • 1 comments

Now exists ProfilerInterface which has ability to collect data.

I think there should exist ReaderInterface which would provide way to read data. Eg:

<?php

namespace Zend\Db\Adapter\Profiler;

interface ReaderInterface
{
    /**
     * @return array|null
     */
    public function getLastProfile();

    /**
     * @return array
     */
    public function getProfiles();
}

And finally Zend\Db\Adapter\Profiler\Profiler will implement this interface.

Thoughts?

vaclavvanik avatar Oct 18 '16 18:10 vaclavvanik