class BaseSunat

Class BaseSunat.

Constants

NUMBER_PATTERN

Properties

CompressInterface|null $compressor
DecompressInterface|null $decompressor
CdrReaderInterface|null $cdrReader

Methods

setCodeProvider(ErrorCodeProviderInterface|null $codeProvider)

No description

getClient()

No description

setClient(WsClientInterface $client)

No description

getErrorFromFault(SoapFault $fault)

Get error from Fault Exception.

getErrorByCode(string $code, string $optional = '')

No description

string
compress(string $filename, string $xml)

No description

extractResponse(string $zipContent)

No description

string
getMessageError(string $code)

No description

isExceptionCode($code)

No description

loadErrorByCode(BillResult $result, $code)

No description

Details

at line 60
setCodeProvider(ErrorCodeProviderInterface|null $codeProvider)

Parameters

ErrorCodeProviderInterface|null $codeProvider

at line 68
WsClientInterface getClient()

Return Value

WsClientInterface

at line 78
BaseSunat setClient(WsClientInterface $client)

Parameters

WsClientInterface $client

Return Value

BaseSunat

at line 92
protected Error getErrorFromFault(SoapFault $fault)

Get error from Fault Exception.

Parameters

SoapFault $fault

Return Value

Error

at line 109
protected Error getErrorByCode(string $code, string $optional = '')

Parameters

string $code
string $optional intenta obtener el codigo de este parametro sino $codigo no es vĂ¡lido

Return Value

Error

at line 133
protected string compress(string $filename, string $xml)

Parameters

string $filename
string $xml

Return Value

string

at line 147
protected CdrResponse extractResponse(string $zipContent)

Parameters

string $zipContent

Return Value

CdrResponse

at line 163
protected string getMessageError(string $code)

Parameters

string $code

Return Value

string

at line 172
protected isExceptionCode($code)

Parameters

$code

at line 179
protected loadErrorByCode(BillResult $result, $code)

Parameters

BillResult $result
$code