���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/wiki.craftaro.com/vendor/wikimedia/parsoid/src/Tokens/CommentTk.php
���ѧ٧ѧ�
<?php declare( strict_types = 1 ); namespace Wikimedia\Parsoid\Tokens; use Wikimedia\Parsoid\NodeData\DataParsoid; /** * Represents a comment */ class CommentTk extends Token { /** @var string Comment text */ public $value; /** * @param string $value * @param ?DataParsoid $dataAttribs */ public function __construct( string $value, ?DataParsoid $dataAttribs = null ) { $this->value = $value; // Won't survive in the DOM, but still useful for token serialization // FIXME: verify if this is still required given that html->wt doesn't // use tokens anymore. That was circa 2012 serializer code. $this->dataAttribs = $dataAttribs ?? new DataParsoid; } /** * @inheritDoc */ public function jsonSerialize(): array { return [ 'type' => $this->getType(), 'value' => $this->value, 'dataAttribs' => $this->dataAttribs ]; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.2 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�