netdudes/DataSourceryBundle

View on GitHub
DataSource/Driver/DriverInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace Netdudes\DataSourceryBundle\DataSource\Driver;

use Netdudes\DataSourceryBundle\DataSource\DataSourceInterface;
use Netdudes\DataSourceryBundle\Query\QueryInterface;

interface DriverInterface
{
    /**
     * @param DataSourceInterface $dataSource
     * @param QueryInterface      $query
     *
     * @return mixed
     */
    public function getData(DataSourceInterface $dataSource, QueryInterface $query);

    /**
     * @param DataSourceInterface $dataSource
     * @param QueryInterface      $query
     *
     * @return mixed
     */
    public function getRecordCount(DataSourceInterface $dataSource, QueryInterface $query);
}