Documentation

Standardize

Table of Contents

Properties

$key  : string
$rootTagList  : array<string|int, mixed>
$json  : string
$node  : string
$sxml  : object
$xml  : mixed

Methods

__construct()  : mixed
Constructor
__toString()  : string
Returns extract node from XML
simpleXml()  : object
Returns the SimpleXml Object
toArray()  : array<string|int, mixed>
Returns array from XML
toJson()  : string
Returns JSON string form XML
toStd()  : stdClass
Returns stdClass converted from xml
whichIs()  : string
Identify node and extract from XML for convertion type
checkXml()  : void
Check and load XML
getQRCode()  : array<string|int, mixed>
Return QRCODE and urlChave from XML

Properties

$rootTagList

public array<string|int, mixed> $rootTagList = ['distDFeInt', 'resNFe', 'resEvento', 'envEvento', 'ConsCad', 'consSitNFe', 'consReciNFe', 'downloadNFe', 'enviNFe', 'inutNFe', 'admCscNFCe', 'consStatServ', 'retDistDFeInt', 'retEnvEvento', 'retConsCad', 'retConsSitNFe', 'retConsReciNFe', 'retDownloadNFe', 'retEnviNFe', 'retInutNFe', 'retAdmCscNFCe', 'retConsStatServ', 'procInutNFe', 'procEventoNFe', 'procNFe', 'nfeProc', 'NFe']

Methods

__construct()

Constructor

public __construct([string|null $xml = null ]) : mixed
Parameters
$xml : string|null = null

__toString()

Returns extract node from XML

public __toString() : string
Return values
string

simpleXml()

Returns the SimpleXml Object

public simpleXml([string|null $xml = null ]) : object
Parameters
$xml : string|null = null
Tags
throws
DocumentsException
Return values
object

toArray()

Returns array from XML

public toArray([string|null $xml = null ]) : array<string|int, mixed>
Parameters
$xml : string|null = null
Tags
throws
DocumentsException
Return values
array<string|int, mixed>

toJson()

Returns JSON string form XML

public toJson([string|null $xml = null ]) : string
Parameters
$xml : string|null = null
Tags
throws
DocumentsException
Return values
string

toStd()

Returns stdClass converted from xml

public toStd([string|null $xml = null ]) : stdClass
Parameters
$xml : string|null = null
Tags
throws
DocumentsException
Return values
stdClass

whichIs()

Identify node and extract from XML for convertion type

public whichIs([string|null $xml = null ]) : string
Parameters
$xml : string|null = null
Tags
throws
DocumentsException
Return values
string

checkXml()

Check and load XML

private checkXml([string|null $xml = null ]) : void
Parameters
$xml : string|null = null
Tags
throws
DocumentsException

getQRCode()

Return QRCODE and urlChave from XML

private getQRCode() : array<string|int, mixed>
Tags
throws
DocumentsException
Return values
array<string|int, mixed>

        
On this page

Search results