firefly-iii/app/Helpers/Help/HelpInterface.php

49 lines
908 B
PHP
Raw Normal View History

2015-04-07 12:58:49 -05:00
<?php
2016-02-05 05:08:25 -06:00
declare(strict_types = 1);
2015-04-07 12:58:49 -05:00
namespace FireflyIII\Helpers\Help;
/**
* Interface HelpInterface
*
* @package FireflyIII\Helpers\Help
*/
interface HelpInterface
{
/**
2016-02-05 02:25:15 -06:00
* @param string $key
2015-04-07 12:58:49 -05:00
*
* @return string
*/
public function getFromCache(string $key): string;
2015-04-07 12:58:49 -05:00
/**
2016-03-03 01:29:56 -06:00
* @param string $language
2016-02-05 02:25:15 -06:00
* @param string $route
2015-04-07 12:58:49 -05:00
*
* @return array
*/
public function getFromGithub(string $language, string $route):array;
2015-04-07 12:58:49 -05:00
/**
2016-02-05 02:25:15 -06:00
* @param string $route
2015-04-07 12:58:49 -05:00
*
2015-05-03 05:58:55 -05:00
* @return bool
2015-04-07 12:58:49 -05:00
*/
public function hasRoute(string $route): bool;
2015-04-07 12:58:49 -05:00
/**
2016-02-05 02:25:15 -06:00
* @param string $route
2015-04-07 12:58:49 -05:00
*
* @return bool
*/
public function inCache(string $route): bool;
2015-05-03 05:58:55 -05:00
/**
2016-02-05 02:25:15 -06:00
* @param string $route
2016-04-09 02:27:04 -05:00
* @param string $language
2016-02-05 02:25:15 -06:00
* @param array $content
2015-05-03 05:58:55 -05:00
*/
2016-04-09 02:27:04 -05:00
public function putInCache(string $route, string $language, array $content);
}