php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
Dom\TokenList Class Reference
Inheritance diagram for Dom\TokenList:
IteratorAggregate Countable Traversable

Public Member Functions

 item (int $index)
 
 contains (string $token)
 
 add (string ... $tokens)
 
 remove (string ... $tokens)
 
 toggle (string $token, ?bool $force=null)
 
 replace (string $token, string $newToken)
 
 supports (string $token)
 
 count ()
 
 getIterator ()
 

Data Fields

int $length
 
string $value
 

Detailed Description

@not-serializable @strict-properties

Definition at line 2098 of file php_dom.stub.php.

Member Function Documentation

◆ add()

Dom\TokenList::add ( string ... $tokens)

Definition at line 2110 of file php_dom.stub.php.

◆ contains()

Dom\TokenList::contains ( string $token)

Definition at line 2109 of file php_dom.stub.php.

◆ count()

Dom\TokenList::count ( )

@tentative-return-type

Implements Countable.

Definition at line 2118 of file php_dom.stub.php.

◆ getIterator()

Dom\TokenList::getIterator ( )

@tentative-return-type

Implements IteratorAggregate.

Definition at line 2120 of file php_dom.stub.php.

◆ item()

Dom\TokenList::item ( int $index)

Definition at line 2108 of file php_dom.stub.php.

◆ remove()

Dom\TokenList::remove ( string ... $tokens)

Definition at line 2111 of file php_dom.stub.php.

◆ replace()

Dom\TokenList::replace ( string $token,
string $newToken )

Definition at line 2113 of file php_dom.stub.php.

◆ supports()

Dom\TokenList::supports ( string $token)

Definition at line 2114 of file php_dom.stub.php.

◆ toggle()

Dom\TokenList::toggle ( string $token,
?bool $force = null )

Definition at line 2112 of file php_dom.stub.php.

Field Documentation

◆ $length

int Dom\TokenList::$length

@readonly @virtual

Definition at line 2107 of file php_dom.stub.php.

◆ $value

string Dom\TokenList::$value

@virtual

Definition at line 2116 of file php_dom.stub.php.


The documentation for this class was generated from the following file: