firefly-iii/app/Repositories/ExportJob/ExportJobRepositoryInterface.php

41 lines
769 B
PHP
Raw Normal View History

2016-02-04 10:16:16 -06:00
<?php
/**
* ExportJobRepositoryInterface.php
2016-04-01 09:44:46 -05:00
* Copyright (C) 2016 thegrumpydictator@gmail.com
2016-02-04 10:16:16 -06:00
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
declare(strict_types = 1);
2016-02-04 10:16:16 -06:00
namespace FireflyIII\Repositories\ExportJob;
use FireflyIII\Models\ExportJob;
/**
* Interface ExportJobRepositoryInterface
*
* @package FireflyIII\Repositories\ExportJob
*/
interface ExportJobRepositoryInterface
{
/**
* @return bool
*/
2016-04-05 15:00:03 -05:00
public function cleanup(): bool;
2016-02-04 10:16:16 -06:00
/**
* @return ExportJob
*/
2016-04-05 15:00:03 -05:00
public function create(): ExportJob;
2016-02-04 10:16:16 -06:00
/**
2016-02-05 02:25:15 -06:00
* @param string $key
2016-02-04 10:16:16 -06:00
*
* @return ExportJob|null
*/
2016-04-05 15:00:03 -05:00
public function findByKey(string $key): ExportJob;
2016-02-04 10:16:16 -06:00
2016-02-10 09:01:18 -06:00
}