File\Csv: use Fetchable instead of BaseQuery

This commit is contained in:
Thomas Gelf 2014-05-07 11:32:06 +00:00
parent bc4783099a
commit ab32a91a6e
1 changed files with 3 additions and 6 deletions

View File

@ -4,18 +4,15 @@
namespace Icinga\File;
use Icinga\Data\BaseQuery;
use Icinga\Data\Fetchable;
class Csv
{
protected $query;
protected function __construct()
{
protected function __construct() {}
}
public static function fromQuery(BaseQuery $query)
public static function fromQuery(Fetchable $query)
{
$csv = new Csv();
$csv->query = $query;