| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package WPEmerge |
| 4 |
* @author Atanas Angelov <hi@atanas.dev> |
| 5 |
* @copyright 2017-2019 Atanas Angelov |
| 6 |
* @license https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0 |
| 7 |
* @link https://wpemerge.com/ |
| 8 |
*/ |
| 9 |
|
| 10 |
namespace WPEmerge\View; |
| 11 |
|
| 12 |
use WPEmerge\Responses\ResponsableInterface; |
| 13 |
|
| 14 |
/** |
| 15 |
* Represent and render a view to a string. |
| 16 |
*/ |
| 17 |
interface ViewInterface extends HasContextInterface, ResponsableInterface { |
| 18 |
/** |
| 19 |
* Get name. |
| 20 |
* |
| 21 |
* @return string |
| 22 |
*/ |
| 23 |
public function getName(); |
| 24 |
|
| 25 |
/** |
| 26 |
* Set name. |
| 27 |
* |
| 28 |
* @param string $name |
| 29 |
* @return static $this |
| 30 |
*/ |
| 31 |
public function setName( $name ); |
| 32 |
|
| 33 |
/** |
| 34 |
* Render the view to a string. |
| 35 |
* |
| 36 |
* @return string |
| 37 |
*/ |
| 38 |
public function toString(); |
| 39 |
} |
| 40 |
|