mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-02 13:39:19 -06:00
563ede822f
Signed-off-by: James Cole <thegrumpydictator@gmail.com>
57 lines
1.1 KiB
PHP
57 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* HelpInterface.php
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
*
|
|
* This software may be modified and distributed under the terms
|
|
* of the MIT license. See the LICENSE file for details.
|
|
*/
|
|
|
|
declare(strict_types = 1);
|
|
namespace FireflyIII\Helpers\Help;
|
|
|
|
/**
|
|
* Interface HelpInterface
|
|
*
|
|
* @package FireflyIII\Helpers\Help
|
|
*/
|
|
interface HelpInterface
|
|
{
|
|
|
|
/**
|
|
* @param string $key
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getFromCache(string $key): string;
|
|
|
|
/**
|
|
* @param string $language
|
|
* @param string $route
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getFromGithub(string $language, string $route):array;
|
|
|
|
/**
|
|
* @param string $route
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function hasRoute(string $route): bool;
|
|
|
|
/**
|
|
* @param string $route
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function inCache(string $route): bool;
|
|
|
|
/**
|
|
* @param string $route
|
|
* @param string $language
|
|
* @param array $content
|
|
*/
|
|
public function putInCache(string $route, string $language, array $content);
|
|
}
|