SimpleNode
class \
Internal
Table of Contents
Constants
- TYPE_CDATA : mixed = 4
- TYPE_COMMENT : mixed = 8
- TYPE_ELEMENT : mixed = 1
- TYPE_TEXT : mixed = 3
Properties
Methods
- __construct() : mixed
- __toString() : string
- fromString() : self
- getElementName() : string|null
- getIndex() : int
- getType() : int
Constants
TYPE_CDATA
public
mixed
TYPE_CDATA
= 4
TYPE_COMMENT
public
mixed
TYPE_COMMENT
= 8
TYPE_ELEMENT
public
mixed
TYPE_ELEMENT
= 1
TYPE_TEXT
public
mixed
TYPE_TEXT
= 3
Properties
$index
protected
int
$index
$string
protected
string
$string
$type
protected
int
$type
Methods
__construct()
public
__construct(int $type, int $index, string $string) : mixed
Parameters
- $type : int
- $index : int
- $string : string
__toString()
public
__toString() : string
Return values
stringfromString()
public
static fromString(int $type, int $index, string $string) : self
Parameters
- $type : int
- $index : int
- $string : string
Return values
selfgetElementName()
public
getElementName() : string|null
Return values
string|nullgetIndex()
public
getIndex() : int
Return values
intgetType()
public
getType() : int