Documentation

Standardize
in package

Table of Contents

Properties

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

Methods

__construct()  : mixed
Constructor
__toString()  : string
Returns extract node from XML
toArray()  : array<string|int, mixed>
Returns array from XML
toJson()  : string
Retruns JSON string form XML
toStd()  : stdClass
Returns stdClass converted from xml
whichIs()  : string
Identify node and extract from XML for convertion type

Properties

$rootTagList

public array<string|int, mixed> $rootTagList = ['enviCTe', 'retEnviCte', 'retCTeOS', 'retCTe', 'retCTeSimp', 'retConsReciCTe', 'consSitCTe', 'retConsSitCTe', 'cteProc', 'cteOSProc', 'procEventoCTe', 'retEventoCTe', 'cteRetRecepcaoResult', 'cteRecepcaoSimpResult', 'cteRecepcaoOSResult', 'retConsStatServCte', 'cteDistDFeInteresseResponse', 'CTe', 'CTeSimp', 'CTeOS', 'eventoCTe', 'evCancCTe', 'protCTe', 'retConsStatServCTe']

Methods

__construct()

Constructor

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

__toString()

Returns extract node from XML

public __toString() : string
Return values
string

toArray()

Returns array from XML

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

toJson()

Retruns JSON string form XML

public toJson([string $xml = null ]) : string
Parameters
$xml : string = null
Return values
string

toStd()

Returns stdClass converted from xml

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

whichIs()

Identify node and extract from XML for convertion type

public whichIs(string $xml) : string
Parameters
$xml : string
Tags
throws
InvalidArgumentException
Return values
string

identificated node name


        
On this page

Search results