5 Commits
1.0.1 ... 2.x

Author SHA1 Message Date
User
382bd5de1f 20240502#1 2024-05-02 11:18:58 +03:00
User
18815227c1 20240410#3 2024-04-10 02:31:59 +03:00
User
ae3aca2dd2 20240410#2 2024-04-10 02:26:13 +03:00
User
660c84f372 20240410#1 2024-04-10 02:23:57 +03:00
User
bddcf4fde4 20231008#2 2023-10-08 19:12:28 +03:00
2 changed files with 82 additions and 2 deletions

View File

@@ -10,13 +10,13 @@ Stable version
composer require rmphp/foundation
```
```bash
composer require rmphp/foundation:"^1.0"
composer require rmphp/foundation:"^2.0"
```
Dev version contains the latest changes
```bash
composer require rmphp/foundation:"1.x-dev"
composer require rmphp/foundation:"2.x-dev"
```

View File

@@ -4,5 +4,85 @@ namespace Rmphp\Foundation;
interface TemplateInterface {
/**
* @param string $template
* @param array $resource
* @return TemplateInterface
*/
public function setTemplate(string $template, array $resource = []): TemplateInterface;
/**
* @param string $subtemplatePath
* @return TemplateInterface
*/
public function setSubtemplatePath(string $subtemplatePath = "") : TemplateInterface;
/**
* @return string
*/
public function getSubtemplatePath(): string;
/**
* @param array $aliases
* @return TemplateInterface
*/
public function setSubtemplatePathAlias(array $aliases = []) : TemplateInterface;
/**
* @return array
*/
public function getSubtemplatePathAlias() : array;
/**
* @param string $subtemplate
* @return string
*/
public function getFullSubtemplatePath(string $subtemplate) : string;
/**
* @param string $point
* @param string $string
* @return void
*/
public function setValue(string $point, string $string) : void;
/**
* @param string $point
* @param string $string
* @return void
*/
public function addValue(string $point, string $string) : void;
/**
* @param string $point
* @param string $subtemplate
* @param array $resource
* @return void
*/
public function setSubtemplate(string $point, string $subtemplate, array $resource = []) : void;
/**
* @param string $point
* @param string $subtemplate
* @param array $resource
* @return void
*/
public function addSubtemplate(string $point, string $subtemplate, array $resource = []) : void;
/**
* @param string $incFile
* @return string
*/
public function inc(string $incFile) : string;
/**
* @param string $point
* @return string
*/
public function getPoint(string $point) : string;
/**
* @return string
*/
public function getResponse(): string;
}