mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
File\Csv: use Fetchable instead of BaseQuery
This commit is contained in:
parent
bc4783099a
commit
ab32a91a6e
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user