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

View File

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