PasteFormData->fromPaste private method added

This commit is contained in:
mitsuha_s 2023-07-23 14:43:24 +03:00
parent ea7ddcde65
commit 1e02e96eba

View file

@ -20,10 +20,15 @@ class PasteFormData
public function __construct(?Paste $paste = null)
{
if ($paste === null)
{
if ($paste === null) {
return;
}
$this->fromPaste($paste);
}
private function fromPaste(Paste $paste)
{
$this->text = $paste->text;
$this->private = $paste->secret !== null;
$this->language = $paste->language;