2017-07-20 02:22:18 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Engelsystem\Renderer;
|
|
|
|
|
|
|
|
interface EngineInterface
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Render a template
|
|
|
|
*
|
|
|
|
* @param string $path
|
|
|
|
* @param mixed[] $data
|
|
|
|
* @return string
|
|
|
|
*/
|
2018-12-03 23:39:50 +01:00
|
|
|
public function get(string $path, array $data = []): string;
|
2017-07-20 02:22:18 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $path
|
|
|
|
* @return bool
|
|
|
|
*/
|
2018-12-03 23:39:50 +01:00
|
|
|
public function canRender(string $path): bool;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string|mixed[] $key
|
|
|
|
* @param mixed $value
|
|
|
|
*/
|
2019-11-29 19:38:28 +01:00
|
|
|
public function share($key, $value = null): void;
|
2017-07-20 02:22:18 +02:00
|
|
|
}
|