diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-12-03 23:39:50 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-07-08 01:58:06 +0200 |
commit | e9f157ec5ccdfae73b4c9e82c9ae7c37bcfa1513 (patch) | |
tree | fea2fdb1df183008f31f7827d9f83a5f6fc13cfb /src/Renderer/EngineInterface.php | |
parent | bcce2625a8cb0b630d945c6849014049869e10ce (diff) |
Renderer: Added shared data
Diffstat (limited to 'src/Renderer/EngineInterface.php')
-rw-r--r-- | src/Renderer/EngineInterface.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Renderer/EngineInterface.php b/src/Renderer/EngineInterface.php index ca468db5..3bce9c02 100644 --- a/src/Renderer/EngineInterface.php +++ b/src/Renderer/EngineInterface.php @@ -11,11 +11,17 @@ interface EngineInterface * @param mixed[] $data * @return string */ - public function get($path, $data = []); + public function get(string $path, array $data = []): string; /** * @param string $path * @return bool */ - public function canRender($path); + public function canRender(string $path): bool; + + /** + * @param string|mixed[] $key + * @param mixed $value + */ + public function share($key, $value = null); } |