Standardize
in package
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
$key
public
string
$key
= ''
$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']
$json
private
string
$json
= ''
$node
private
string
$node
= ''
$sxml
private
object
$sxml
$xml
private
mixed
$xml
= ''
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
stringsimpleXml()
Returns the SimpleXml Object
public
simpleXml([string|null $xml = null ]) : object
Parameters
- $xml : string|null = null
Tags
Return values
objecttoArray()
Returns array from XML
public
toArray([string|null $xml = null ]) : array<string|int, mixed>
Parameters
- $xml : string|null = null
Tags
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
Return values
stringtoStd()
Returns stdClass converted from xml
public
toStd([string|null $xml = null ]) : stdClass
Parameters
- $xml : string|null = null
Tags
Return values
stdClasswhichIs()
Identify node and extract from XML for convertion type
public
whichIs([string|null $xml = null ]) : string
Parameters
- $xml : string|null = null
Tags
Return values
stringcheckXml()
Check and load XML
private
checkXml([string|null $xml = null ]) : void
Parameters
- $xml : string|null = null
Tags
getQRCode()
Return QRCODE and urlChave from XML
private
getQRCode() : array<string|int, mixed>