NotasFiscaisDanfexmlEmpresaEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = ['obfuscate_fields' => ['senhaCertificado']]
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_DEFAULT
- db_table = 'finan_notas_fiscais_danfexml_empresa'
- pk_field = 'idNotaEmpresa'
- sanitize = ['cnpjMatriz' => 'onlyNumber', 'cnpj' => 'onlyNumber']
- Estrutura = ['key' => 'rule']
- security = ['select' => 'core\EntitySecurity::securitySelect', 'delete' => 'core\EntitySecurity::securityDelete', 'update' => 'core\EntitySecurity::securityUpdate', 'insert' => 'core\EntitySecurity::securityInsert']
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = ['cnpjMatriz' => ['required' => 'Campo CNPJ é obrigatório.', 'cpfCnpj' => 'CPF/CNPJ inválido.'], 'cnpj' => ['required' => 'Campo CNPJ é obrigatório.', 'cpfCnpj' => 'CPF/CNPJ inválido.'], 'razaoSocial' => ['required' => 'Campo Razão Social é obrigatório.'], 'senhaCertificado' => ['required' => 'Campo Senha é obrigatório'], 'nomeCertificadoPFX' => ['required' => 'Campo Nome Certificado é obrigatório.']]
- Estrutura = ['key' => ['keyRule' => 'Rule message']]
Properties
- $cnpj : mixed
- $cnpjMatriz : mixed
- $cStat : mixed
- $cteqtidadeNSU : mixed
- $cteultimoNSU : mixed
- $dataEnvioEmailAviso : mixed
- $dataHora : mixed
- $dataVectocertificado : mixed
- $dhResp : mixed
- $dhRespCTe : mixed
- $docZip : mixed
- $docZipCTe : mixed
- $docZipExcecao : mixed
- $idCertificado : mixed
- $idNotaEmpresa : mixed
- $nomeCertificadoPFX : mixed
- $qtidadeNSU : mixed
- $razaoSocial : mixed
- $saldoConsulta : mixed
- $senhaCertificado : mixed
- $status : mixed
- $ultimoNSU : mixed
- $ultimoNSUNFSe : mixed
- $xMotivo : mixed
- $xMotivoCTe : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getCnpj() : mixed
- Get the value of cnpj
- getCnpjMatriz() : mixed
- Get the value of cnpjMatriz
- getConst() : mixed
- getConstObj() : mixed
- getCStat() : mixed
- Get the value of cStat
- getCteqtidadeNSU() : mixed
- Get the value of cteqtidadeNSU
- getCteultimoNSU() : mixed
- Get the value of cteultimoNSU
- getDatabase() : mixed
- getDataEnvioEmailAviso() : mixed
- Get the value of dataEnvioEmailAviso
- getDataHora() : mixed
- Get the value of dataHora
- getDataVectocertificado() : mixed
- Get the value of dataVectocertificado
- getDBDriver() : mixed
- getDBTable() : mixed
- getDhResp() : mixed
- Get the value of dhResp
- getDhRespCTe() : mixed
- Get the value of dhRespCTe
- getDocZip() : mixed
- Get the value of docZip
- getDocZipCTe() : mixed
- Get the value of docZipCTe
- getDocZipExcecao() : mixed
- Get the value of docZipExcecao
- getIdCertificado() : mixed
- getIdNotaEmpresa() : mixed
- Get the value of idNotaEmpresa
- getNomeCertificadoPFX() : mixed
- Get the value of nomeCertificadoPFX
- getQtidadeNSU() : mixed
- Get the value of qtidadeNSU
- getRazaoSocial() : mixed
- Get the value of razaoSocial
- getSaldoConsulta() : mixed
- Get the value of saldoConsulta
- getSenhaCertificado() : mixed
- Get the value of senhaCertificado
- getStatus() : mixed
- Get the value of status
- getTable() : mixed
- getUltimoNSU() : mixed
- Get the value of ultimoNSU
- getUltimoNSUNFSe() : mixed
- Get the value of ultimoNSUNFSe
- getXMotivo() : mixed
- Get the value of xMotivo
- getXMotivoCTe() : mixed
- Get the value of xMotivoCTe
- hasField() : mixed
- insert() : null|Entity
- insert_or_select() : null|Entity
- Funcao que insere ou seleciona se existe
- insert_or_update() : array<string|int, mixed>
- Funcao que insere ou atualiza uma entidade no banco de dados
- securityDelete() : bool
- securityInsert() : bool
- securitySelect() : array<string|int, mixed>
- securityUpdate() : bool
- setCnpj() : self
- Set the value of cnpj
- setCnpjMatriz() : self
- Set the value of cnpjMatriz
- setCStat() : self
- Set the value of cStat
- setCteqtidadeNSU() : self
- Set the value of cteqtidadeNSU
- setCteultimoNSU() : self
- Set the value of cteultimoNSU
- setDataEnvioEmailAviso() : self
- Set the value of dataEnvioEmailAviso
- setDataHora() : self
- Set the value of dataHora
- setDataVectocertificado() : self
- Set the value of dataVectocertificado
- setDhResp() : self
- Set the value of dhResp
- setDhRespCTe() : self
- Set the value of dhRespCTe
- setDocZip() : self
- Set the value of docZip
- setDocZipCTe() : self
- Set the value of docZipCTe
- setDocZipExcecao() : self
- Set the value of docZipExcecao
- setIdCertificado() : mixed
- setIdNotaEmpresa() : self
- Set the value of idNotaEmpresa
- setNomeCertificadoPFX() : self
- Set the value of nomeCertificadoPFX
- setQtidadeNSU() : self
- Set the value of qtidadeNSU
- setRazaoSocial() : self
- Set the value of razaoSocial
- setSaldoConsulta() : self
- Set the value of saldoConsulta
- setSenhaCertificado() : self
- Set the value of senhaCertificado
- setStatus() : self
- Set the value of status
- setUltimoNSU() : self
- Set the value of ultimoNSU
- setUltimoNSUNFSe() : self
- Set the value of ultimoNSUNFSe
- setXMotivo() : self
- Set the value of xMotivo
- setXMotivoCTe() : self
- Set the value of xMotivoCTe
- update() : mixed
- A função update pode atualizar uma Entity já instanciada, desde que a chave primária esteja setada, ou pode atualizar uma Entity vazia informando o valor da chave primária no segundo parâmetro (pk_value)
- validateFields() : bool
- where() : Collection
- Rudimentary ORM functions
Constants
auditlog
Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
public
mixed
auditlog
= ['obfuscate_fields' => ['senhaCertificado']]
const_values
public
mixed
const_values
= []
database
public
mixed
database
= \config\Config::DB_DEFAULT
db_table
public
mixed
db_table
= 'finan_notas_fiscais_danfexml_empresa'
pk_field
public
mixed
pk_field
= 'idNotaEmpresa'
sanitize
Estrutura = ['key' => 'rule']
public
mixed
sanitize
= ['cnpjMatriz' => 'onlyNumber', 'cnpj' => 'onlyNumber']
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= ['select' => 'core\EntitySecurity::securitySelect', 'delete' => 'core\EntitySecurity::securityDelete', 'update' => 'core\EntitySecurity::securityUpdate', 'insert' => 'core\EntitySecurity::securityInsert']
tracking
public
mixed
tracking
= true
validations
Estrutura = ['key' => ['keyRule' => 'Rule message']]
public
mixed
validations
= ['cnpjMatriz' => ['required' => 'Campo CNPJ é obrigatório.', 'cpfCnpj' => 'CPF/CNPJ inválido.'], 'cnpj' => ['required' => 'Campo CNPJ é obrigatório.', 'cpfCnpj' => 'CPF/CNPJ inválido.'], 'razaoSocial' => ['required' => 'Campo Razão Social é obrigatório.'], 'senhaCertificado' => ['required' => 'Campo Senha é obrigatório'], 'nomeCertificadoPFX' => ['required' => 'Campo Nome Certificado é obrigatório.']]
Properties
$cnpj
private
mixed
$cnpj
$cnpjMatriz
private
mixed
$cnpjMatriz
$cStat
private
mixed
$cStat
$cteqtidadeNSU
private
mixed
$cteqtidadeNSU
$cteultimoNSU
private
mixed
$cteultimoNSU
$dataEnvioEmailAviso
private
mixed
$dataEnvioEmailAviso
$dataHora
private
mixed
$dataHora
$dataVectocertificado
private
mixed
$dataVectocertificado
$dhResp
private
mixed
$dhResp
$dhRespCTe
private
mixed
$dhRespCTe
$docZip
private
mixed
$docZip
$docZipCTe
private
mixed
$docZipCTe
$docZipExcecao
private
mixed
$docZipExcecao
$idCertificado
private
mixed
$idCertificado
$idNotaEmpresa
private
mixed
$idNotaEmpresa
$nomeCertificadoPFX
private
mixed
$nomeCertificadoPFX
$qtidadeNSU
private
mixed
$qtidadeNSU
$razaoSocial
private
mixed
$razaoSocial
$saldoConsulta
private
mixed
$saldoConsulta
$senhaCertificado
private
mixed
$senhaCertificado
$status
private
mixed
$status
$ultimoNSU
private
mixed
$ultimoNSU
$ultimoNSUNFSe
private
mixed
$ultimoNSUNFSe
$xMotivo
private
mixed
$xMotivo
$xMotivoCTe
private
mixed
$xMotivoCTe
Methods
__construct()
public
__construct([array<string|int, mixed> $values = [] ]) : mixed
Parameters
- $values : array<string|int, mixed> = []
delete()
public
delete(mixed $motivo) : mixed
Parameters
- $motivo : mixed
delete_where()
public
static delete_where(mixed $motivo[, mixed $where = [] ]) : mixed
Parameters
- $motivo : mixed
- $where : mixed = []
getAuditlog()
public
getAuditlog([string|null $key = null ]) : mixed
Parameters
- $key : string|null = null
getCnpj()
Get the value of cnpj
public
getCnpj() : mixed
getCnpjMatriz()
Get the value of cnpjMatriz
public
getCnpjMatriz() : mixed
getConst()
public
static getConst(string $field[, mixed $const_value = null ]) : mixed
Parameters
- $field : string
- $const_value : mixed = null
getConstObj()
public
static getConstObj(string $field[, mixed $const_value = null ]) : mixed
Parameters
- $field : string
- $const_value : mixed = null
getCStat()
Get the value of cStat
public
getCStat() : mixed
getCteqtidadeNSU()
Get the value of cteqtidadeNSU
public
getCteqtidadeNSU() : mixed
getCteultimoNSU()
Get the value of cteultimoNSU
public
getCteultimoNSU() : mixed
getDatabase()
public
getDatabase() : mixed
getDataEnvioEmailAviso()
Get the value of dataEnvioEmailAviso
public
getDataEnvioEmailAviso() : mixed
getDataHora()
Get the value of dataHora
public
getDataHora() : mixed
getDataVectocertificado()
Get the value of dataVectocertificado
public
getDataVectocertificado() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getDhResp()
Get the value of dhResp
public
getDhResp() : mixed
getDhRespCTe()
Get the value of dhRespCTe
public
getDhRespCTe() : mixed
getDocZip()
Get the value of docZip
public
getDocZip() : mixed
getDocZipCTe()
Get the value of docZipCTe
public
getDocZipCTe() : mixed
getDocZipExcecao()
Get the value of docZipExcecao
public
getDocZipExcecao() : mixed
getIdCertificado()
public
getIdCertificado() : mixed
getIdNotaEmpresa()
Get the value of idNotaEmpresa
public
getIdNotaEmpresa() : mixed
getNomeCertificadoPFX()
Get the value of nomeCertificadoPFX
public
getNomeCertificadoPFX() : mixed
getQtidadeNSU()
Get the value of qtidadeNSU
public
getQtidadeNSU() : mixed
getRazaoSocial()
Get the value of razaoSocial
public
getRazaoSocial() : mixed
getSaldoConsulta()
Get the value of saldoConsulta
public
getSaldoConsulta() : mixed
getSenhaCertificado()
Get the value of senhaCertificado
public
getSenhaCertificado() : mixed
getStatus()
Get the value of status
public
getStatus() : mixed
getTable()
public
getTable() : mixed
getUltimoNSU()
Get the value of ultimoNSU
public
getUltimoNSU() : mixed
getUltimoNSUNFSe()
Get the value of ultimoNSUNFSe
public
getUltimoNSUNFSe() : mixed
getXMotivo()
Get the value of xMotivo
public
getXMotivo() : mixed
getXMotivoCTe()
Get the value of xMotivoCTe
public
getXMotivoCTe() : mixed
hasField()
public
static hasField(mixed $field) : mixed
Parameters
- $field : mixed
insert()
public
insert() : null|Entity
Return values
null|Entityinsert_or_select()
Funcao que insere ou seleciona se existe
public
insert_or_select([mixed $where = [] ]) : null|Entity
Parameters
- $where : mixed = []
Return values
null|Entityinsert_or_update()
Funcao que insere ou atualiza uma entidade no banco de dados
public
insert_or_update([mixed $where = [] ][, mixed $update_fields = ['*'] ]) : array<string|int, mixed>
Parameters
- $where : mixed = []
- $update_fields : mixed = ['*']
Return values
array<string|int, mixed>securityDelete()
public
securityDelete(mixed $table, mixed $where) : bool
Parameters
- $table : mixed
- $where : mixed
Return values
boolsecurityInsert()
public
securityInsert(mixed $fields) : bool
Parameters
- $fields : mixed
Return values
bool —return 'true' if the security function didn't find any security issue and 'false' otherwise
securitySelect()
public
securitySelect(mixed $table, mixed $fields, mixed $where) : array<string|int, mixed>
Parameters
- $table : mixed
- $fields : mixed
- $where : mixed
Return values
array<string|int, mixed> —return an array with information to be appended in the SQL select
securityUpdate()
public
securityUpdate(mixed $fields, mixed $where) : bool
Parameters
- $fields : mixed
- $where : mixed
Return values
bool —return 'true' if the security function didn't find any security issue and 'false' otherwise
setCnpj()
Set the value of cnpj
public
setCnpj(mixed $cnpj) : self
Parameters
- $cnpj : mixed
Return values
selfsetCnpjMatriz()
Set the value of cnpjMatriz
public
setCnpjMatriz(mixed $cnpjMatriz) : self
Parameters
- $cnpjMatriz : mixed
Return values
selfsetCStat()
Set the value of cStat
public
setCStat(mixed $cStat) : self
Parameters
- $cStat : mixed
Return values
selfsetCteqtidadeNSU()
Set the value of cteqtidadeNSU
public
setCteqtidadeNSU(mixed $cteqtidadeNSU) : self
Parameters
- $cteqtidadeNSU : mixed
Return values
selfsetCteultimoNSU()
Set the value of cteultimoNSU
public
setCteultimoNSU(mixed $cteultimoNSU) : self
Parameters
- $cteultimoNSU : mixed
Return values
selfsetDataEnvioEmailAviso()
Set the value of dataEnvioEmailAviso
public
setDataEnvioEmailAviso(mixed $dataEnvioEmailAviso) : self
Parameters
- $dataEnvioEmailAviso : mixed
Return values
selfsetDataHora()
Set the value of dataHora
public
setDataHora(mixed $dataHora) : self
Parameters
- $dataHora : mixed
Return values
selfsetDataVectocertificado()
Set the value of dataVectocertificado
public
setDataVectocertificado(mixed $dataVectocertificado) : self
Parameters
- $dataVectocertificado : mixed
Return values
selfsetDhResp()
Set the value of dhResp
public
setDhResp(mixed $dhResp) : self
Parameters
- $dhResp : mixed
Return values
selfsetDhRespCTe()
Set the value of dhRespCTe
public
setDhRespCTe(mixed $dhRespCTe) : self
Parameters
- $dhRespCTe : mixed
Return values
selfsetDocZip()
Set the value of docZip
public
setDocZip(mixed $docZip) : self
Parameters
- $docZip : mixed
Return values
selfsetDocZipCTe()
Set the value of docZipCTe
public
setDocZipCTe(mixed $docZipCTe) : self
Parameters
- $docZipCTe : mixed
Return values
selfsetDocZipExcecao()
Set the value of docZipExcecao
public
setDocZipExcecao(mixed $docZipExcecao) : self
Parameters
- $docZipExcecao : mixed
Return values
selfsetIdCertificado()
public
setIdCertificado(mixed $idCertificado) : mixed
Parameters
- $idCertificado : mixed
setIdNotaEmpresa()
Set the value of idNotaEmpresa
public
setIdNotaEmpresa(mixed $idNotaEmpresa) : self
Parameters
- $idNotaEmpresa : mixed
Return values
selfsetNomeCertificadoPFX()
Set the value of nomeCertificadoPFX
public
setNomeCertificadoPFX(mixed $nomeCertificadoPFX) : self
Parameters
- $nomeCertificadoPFX : mixed
Return values
selfsetQtidadeNSU()
Set the value of qtidadeNSU
public
setQtidadeNSU(mixed $qtidadeNSU) : self
Parameters
- $qtidadeNSU : mixed
Return values
selfsetRazaoSocial()
Set the value of razaoSocial
public
setRazaoSocial(mixed $razaoSocial) : self
Parameters
- $razaoSocial : mixed
Return values
selfsetSaldoConsulta()
Set the value of saldoConsulta
public
setSaldoConsulta(mixed $saldoConsulta) : self
Parameters
- $saldoConsulta : mixed
Return values
selfsetSenhaCertificado()
Set the value of senhaCertificado
public
setSenhaCertificado(mixed $senhaCertificado) : self
Parameters
- $senhaCertificado : mixed
Return values
selfsetStatus()
Set the value of status
public
setStatus(mixed $status) : self
Parameters
- $status : mixed
Return values
selfsetUltimoNSU()
Set the value of ultimoNSU
public
setUltimoNSU(mixed $ultimoNSU) : self
Parameters
- $ultimoNSU : mixed
Return values
selfsetUltimoNSUNFSe()
Set the value of ultimoNSUNFSe
public
setUltimoNSUNFSe(mixed $ultimoNSUNFSe) : self
Parameters
- $ultimoNSUNFSe : mixed
Return values
selfsetXMotivo()
Set the value of xMotivo
public
setXMotivo(mixed $xMotivo) : self
Parameters
- $xMotivo : mixed
Return values
selfsetXMotivoCTe()
Set the value of xMotivoCTe
public
setXMotivoCTe(mixed $xMotivoCTe) : self
Parameters
- $xMotivoCTe : mixed
Return values
selfupdate()
A função update pode atualizar uma Entity já instanciada, desde que a chave primária esteja setada, ou pode atualizar uma Entity vazia informando o valor da chave primária no segundo parâmetro (pk_value)
public
update(array<string|int, mixed> $values[, mixed $pk_value = null ]) : mixed
Parameters
- $values : array<string|int, mixed>
- $pk_value : mixed = null
validateFields()
public
validateFields([array<string|int, mixed> $fields = [] ]) : bool
Parameters
- $fields : array<string|int, mixed> = []
Return values
boolwhere()
Rudimentary ORM functions
public
static where([mixed $where = [] ][, mixed $select = '*' ]) : Collection
Parameters
- $where : mixed = []
- $select : mixed = '*'