���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/wiki.craftaro.com/vendor/wikimedia/parsoid/src/NodeData/ParamInfo.php
���ѧ٧ѧ�
<?php declare( strict_types = 1 ); namespace Wikimedia\Parsoid\NodeData; use JsonSerializable; use stdClass; use Wikimedia\Parsoid\Tokens\KVSourceRange; class ParamInfo implements JsonSerializable { /** * The parameter key * @var string */ public $k; /** * The key source wikitext, if different from $k * @var string|null */ public $keyWt; /** * The parameter value source wikitext * @var string|null */ public $valueWt; /** * @var KVSourceRange|null */ public $srcOffsets; /** * @var bool */ public $named = false; /** * @var string[]|null */ public $spc; /** @var string|null */ public $html; /** * @param string $key * @param KVSourceRange|null $srcOffsets */ public function __construct( $key, $srcOffsets = null ) { $this->k = $key; $this->srcOffsets = $srcOffsets; } /** * Create an object from unserialized data-parsoid.pi * @param stdClass $data * @return self */ public static function newFromJson( stdClass $data ) { $info = new self( $data->k ?? '' ); $info->named = $data->named ?? false; $info->spc = $data->spc ?? null; return $info; } /** * Serialize for data-parsoid.pi. The rest of the data is temporary, it is * not needed across requests. * * @return array */ public function jsonSerialize(): array { $ret = [ 'k' => $this->k ]; if ( $this->named ) { $ret['named'] = true; } if ( $this->spc ) { $ret['spc'] = $this->spc; } return $ret; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.1 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�