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

59 lines
1.1 KiB
PHP
Raw Normal View History

2015-04-07 19:58:49 +02:00
<?php
/**
* HelpInterface.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
2016-02-05 12:08:25 +01:00
declare(strict_types = 1);
2015-04-07 19:58:49 +02:00
namespace FireflyIII\Helpers\Help;
/**
* Interface HelpInterface
*
* @package FireflyIII\Helpers\Help
*/
interface HelpInterface
{
/**
2016-02-05 09:25:15 +01:00
* @param string $key
2015-04-07 19:58:49 +02:00
*
* @return string
*/
public function getFromCache(string $key): string;
2015-04-07 19:58:49 +02:00
/**
2016-03-03 08:29:56 +01:00
* @param string $language
2016-02-05 09:25:15 +01:00
* @param string $route
2015-04-07 19:58:49 +02:00
*
* @return array
*/
public function getFromGithub(string $language, string $route):array;
2015-04-07 19:58:49 +02:00
/**
2016-02-05 09:25:15 +01:00
* @param string $route
2015-04-07 19:58:49 +02:00
*
2015-05-03 12:58:55 +02:00
* @return bool
2015-04-07 19:58:49 +02:00
*/
public function hasRoute(string $route): bool;
2015-04-07 19:58:49 +02:00
/**
2016-02-05 09:25:15 +01:00
* @param string $route
2015-04-07 19:58:49 +02:00
*
* @return bool
*/
public function inCache(string $route): bool;
2015-05-03 12:58:55 +02:00
/**
2016-02-05 09:25:15 +01:00
* @param string $route
2016-04-09 09:27:04 +02:00
* @param string $language
2016-02-05 09:25:15 +01:00
* @param array $content
2015-05-03 12:58:55 +02:00
*/
2016-04-09 09:27:04 +02:00
public function putInCache(string $route, string $language, array $content);
}