MadelineProto/src/danog/MadelineProto/Settings/Templates.php
2020-09-27 22:15:16 +02:00

41 lines
1012 B
PHP

<?php
namespace danog\MadelineProto\Settings;
use danog\MadelineProto\SettingsAbstract;
/**
* Web and CLI template settings for login.
*/
class Templates extends SettingsAbstract
{
/**
* Web template used for querying app information.
*/
protected string $htmlTemplate = '<!DOCTYPE html><html><head><title>MadelineProto</title></head><body><h1>MadelineProto</h1><p>%s</p><form method="POST">%s<button type="submit"/>%s</button></form></body></html>';
/**
* Get web template used for querying app information.
*
* @return string
*/
public function getHtmlTemplate(): string
{
return $this->htmlTemplate;
}
/**
* Set web template used for querying app information.
*
* @param string $htmlTemplate Web template used for querying app information.
*
* @return self
*/
public function setHtmlTemplate(string $htmlTemplate): self
{
$this->htmlTemplate = $htmlTemplate;
return $this;
}
}