for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Erykai\Template;
abstract class Resource
{
use TraitTemplate;
Erykai\Template\TraitTemplate
$translate
Erykai\Template\Resource
protected string $index;
protected string $main;
protected string $page;
protected string $menu;
protected string $ext;
protected string $themeIndex;
protected string $themePage;
public function __construct(string $themeIndex, string $themePage, string $ext = "html", $menu = null)
$this->setThemeIndex($themeIndex);
$this->setThemePage($themePage);
$this->setMenu($menu);
$this->setExt($ext);
}
/**
* @return string
*/
public function getIndex(): string
return $this->index;
* @param string $index
protected function setIndex(string $index): void
$this->index = $index;
protected function getMain(): string
return $this->main;
* @param string $main
protected function setMain(string $main): void
$this->main = $main;
protected function getPage(): string
return $this->page;
* @param string $page
protected function setPage(string $page): void
$this->page = $page;
protected function getMenu(): string
return $this->menu;
* @param ?string $menu
protected function setMenu(?string $menu): void
$this->menu = $menu;
protected function getExt(): string
return $this->ext;
* @param string $ext
protected function setExt(string $ext): void
$this->ext = $ext;
protected function getThemeIndex(): string
return $this->themeIndex;
* @param string $theme
protected function setThemeIndex(string $theme): void
$this->themeIndex = $theme;
protected function getThemePage(): string
return $this->themePage;
protected function setThemePage(string $theme): void
$this->themePage = $theme;