Documentation

Webservices

Table of Contents

Properties

$json  : mixed
$std  : mixed

Methods

__construct()  : mixed
Constructor
__toString()  : string
Return WS parameters in json format
get()  : stdClass
Gets webservices parameters for specific conditions
getAuth()  : string
Obtem a sigla do autorizador para um estado origem e modelo de documento fiscal
toStd()  : stdClass
Return WS parameters in a stdClass
convert()  : mixed
Read WS xml and convert to json and stdClass
extract()  : array<string|int, mixed>
Extract data from wbservices XML strorage to a array

Properties

Methods

__construct()

Constructor

public __construct(string $xml) : mixed
Parameters
$xml : string

path or xml content from nfe_ws3_mod55 or nfe_ws3_mod65

__toString()

Return WS parameters in json format

public __toString() : string
Return values
string

get()

Gets webservices parameters for specific conditions

public get(string $sigla, int|string $amb, int $modelo) : stdClass
Parameters
$sigla : string
$amb : int|string

1-Produção ou 2-Homologação

$modelo : int

"55" ou "65"

Tags
see

storage/autorizadores.json

Return values
stdClass

getAuth()

Obtem a sigla do autorizador para um estado origem e modelo de documento fiscal

public static getAuth(string $sigla, int $modelo) : string
Parameters
$sigla : string
$modelo : int
Return values
string

toStd()

Return WS parameters in a stdClass

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

convert()

Read WS xml and convert to json and stdClass

protected convert(string $xml) : mixed
Parameters
$xml : string

extract()

Extract data from wbservices XML strorage to a array

protected extract(SimpleXMLElement $node, string $environment) : array<string|int, mixed>
Parameters
$node : SimpleXMLElement
$environment : string
Return values
array<string|int, mixed>

        
On this page

Search results