1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
ClosedBbCode.php
См. документацию.
1<?php
2declare(strict_types=1);
3
4namespace Bitrix\Im\V2\Message\Text;
5
6abstract class ClosedBbCode extends BaseBbCode
7{
8 protected string $innerText;
9
10 public function __construct(string $innerText)
11 {
12 $this->innerText = $innerText;
13 }
14
15 final public function compile(): string
16 {
17 return parent::compile() . $this->innerText . self::getClosingPart();
18 }
19
20 public function toPlain(): string
21 {
22 return $this->innerText;
23 }
24
25 private static function getClosingPart(): string
26 {
27 $name = static::getName();
28
29 return "[/{$name}]";
30 }
31}
__construct(string $innerText)
Определения ClosedBbCode.php:10
$name
Определения menu_edit.php:35