Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5972559
Attributes.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
Attributes.php
View Options
<?php
namespace
Wikimedia\RemexHtml\Tokenizer
;
/**
* Interface for attributes emitted by the tokenizer
*/
interface
Attributes
extends
\ArrayAccess
,
\IteratorAggregate
{
/**
* Get the attributes as a key/value array
* @return string[]
*/
public
function
getValues
();
/**
* Get the attributes as an array of Attribute objects
* @return Attribute[]
*/
public
function
getObjects
();
/**
* Get the number of attributes. This may include duplicates, and so may
* be larger than count( $this->getValues() ). Including duplicates
* gives us an efficient way to distinguish zero attributes from non-zero
* but is not compliant with the spec, which states that duplicate
* attributes must be removed.
*
* @return int
*/
public
function
count
();
/**
* Add any attributes in the argument to $this, but if an attribute of the
* same name already exists, do not overwrite it.
*
* @param Attributes $other
*/
public
function
merge
(
Attributes
$other
);
/**
* It's efficient to assume that attributes are immutable when cloning
* nodes due to AFE reconstruction or AAA. So by default, this returns
* $this. But users can override it if attribute cloning needs special
* handling.
*
* @return Attributes
*/
public
function
clone
();
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 16:00 (1 d, 16 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
33/19/dbf16c024d31a83f4f58c75b4dc6
Default Alt Text
Attributes.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment