RendimentoEntity
extends Entity
in package
Table of Contents
Constants
- auditlog = ['exclude_fields' => ['dataHora']]
- Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
- const_values = []
- database = \config\Config::DB_DEFAULT
- db_table = 'finan_rendimento'
- pk_field = 'idRendimento'
- sanitize = []
- Estrutura = ['key' => 'rule']
- security = ['update' => 'src\models\RendimentoSecurity::securityUpdate']
- Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
- tracking = true
- validations = [ 'data' => ['required' => 'O campo Data Abertura Aplicação é requerido.', 'date' => 'O campo Data Abertura Aplicação não tem data válida.', 'varificaDataAtual' => 'A Data Abertura Aplicação não pode ser maior que a data atual.'], 'idEntidade' => ['required' => 'O campo Entidade Contratada é requerido.'], 'idEntidadeContratada' => ['required' => 'O campo Fornecedor é requerido.'], 'idContaBancaria' => ['required' => 'O campo Conta Bancária é requerido.'], 'idTipoRendimento' => ['required' => 'O campo Tipo de Rendimento é requerido.'], 'idPlanoConta' => ['required' => 'O campo Conta RendimentoPositivo é requerido.'], 'idPlanoContaJurosNeg' => ['required' => 'O campo Conta Rendimento Negativo é requerido.'], 'idUnidadeNegocio' => ['required' => 'O campo Unidade Negocio é requerido.'], 'prazoCarencia' => ['required' => 'O campo Prazo Carência (Dias) é requerido.'], //'participaCDI' => ['required' => 'O campo DI Rendimento é requerido.'], 'taxaAdministracao' => ['required' => 'O campo Taxa de Administração é requerido.'], 'jurosRentabilidade' => ['required' => 'O campo Juros Mensal Projetado é requerido.'], 'descricaoRendimento' => ['required' => 'O campo Descrição Rendimento é requerido.'], ]
- Estrutura = ['key' => ['keyRule' => 'Rule message']]
Properties
- $data : mixed
- $dataFinalResgate : mixed
- $dataHora : mixed
- $descricaoRendimento : mixed
- $idContaBancaria : mixed
- $idEntidade : mixed
- $idEntidadeContratada : mixed
- $idFazenda : mixed
- $idNegocio : mixed
- $idPlanoConta : mixed
- $idPlanoContaJurosNeg : mixed
- $idRendimento : mixed
- $idTipoRendimento : mixed
- $idUnidadeNegocio : mixed
- $idUsuario : mixed
- $jurosRentabilidade : mixed
- $prazoCarencia : mixed
- $saldoAtual : mixed
- $saldoInicial : mixed
- $status : mixed
- $statusFluxoCaixa : mixed
- $statusImobilizado : mixed
- $taxaAdministracao : mixed
- $totalAnexo : mixed
Methods
- __construct() : mixed
- delete() : mixed
- delete_where() : mixed
- getAuditlog() : mixed
- getConst() : mixed
- getConstObj() : mixed
- getData() : mixed
- Get the value of data
- getDatabase() : mixed
- getDataFinalResgate() : mixed
- Get the value of dataFinalResgate
- getDataHora() : mixed
- Get the value of dataHora
- getDBDriver() : mixed
- getDBTable() : mixed
- getDescricaoRendimento() : mixed
- Get the value of descricaoRendimento
- getIdContaBancaria() : mixed
- Get the value of idContaBancaria
- getIdEntidade() : mixed
- Get the value of idEntidade
- getIdEntidadeContratada() : mixed
- Get the value of idEntidadeContratada
- getIdFazenda() : mixed
- Get the value of idFazenda
- getIdNegocio() : mixed
- Get the value of idNegocio
- getIdPlanoConta() : mixed
- Get the value of idPlanoConta
- getIdPlanoContaJurosNeg() : mixed
- Get the value of idPlanoContaJurosNeg
- getIdRendimento() : mixed
- Get the value of idRendimento
- getIdTipoRendimento() : mixed
- Get the value of idTipoRendimento
- getIdUnidadeNegocio() : mixed
- Get the value of idUnidadeNegocio
- getIdUsuario() : mixed
- Get the value of idUsuario
- getJurosRentabilidade() : mixed
- Get the value of jurosRentabilidade
- getParticipaCDI() : mixed
- Get the value of participaCDI
- getPrazoCarencia() : mixed
- Get the value of prazoCarencia
- getSaldoAtual() : mixed
- Get the value of saldoAtual
- getSaldoInicial() : mixed
- Get the value of saldoInicial
- getStatus() : mixed
- Get the value of status
- getStatusFluxoCaixa() : mixed
- Get the value of statusFluxoCaixa
- getStatusImobilizado() : mixed
- Get the value of statusImobilizado
- getTable() : mixed
- getTaxaAdministracao() : mixed
- Get the value of taxaAdministracao
- getTotalAnexo() : mixed
- Get the value of totalAnexo
- 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
- setData() : self
- Set the value of data
- setDataFinalResgate() : self
- Set the value of dataFinalResgate
- setDataHora() : self
- Set the value of dataHora
- setDescricaoRendimento() : self
- Set the value of descricaoRendimento
- setIdContaBancaria() : self
- Set the value of idContaBancaria
- setIdEntidade() : self
- Set the value of idEntidade
- setIdEntidadeContratada() : self
- Set the value of idEntidadeContratada
- setIdFazenda() : self
- Set the value of idFazenda
- setIdNegocio() : self
- Set the value of idNegocio
- setIdPlanoConta() : self
- Set the value of idPlanoConta
- setIdPlanoContaJurosNeg() : self
- Set the value of idPlanoContaJurosNeg
- setIdRendimento() : self
- Set the value of idRendimento
- setIdTipoRendimento() : self
- Set the value of idTipoRendimento
- setIdUnidadeNegocio() : self
- Set the value of idUnidadeNegocio
- setIdUsuario() : self
- Set the value of idUsuario
- setJurosRentabilidade() : self
- Set the value of jurosRentabilidade
- setParticipaCDI() : self
- Set the value of participaCDI
- setPrazoCarencia() : self
- Set the value of prazoCarencia
- setSaldoAtual() : self
- Set the value of saldoAtual
- setSaldoInicial() : self
- Set the value of saldoInicial
- setStatus() : self
- Set the value of status
- setStatusFluxoCaixa() : self
- Set the value of statusFluxoCaixa
- setStatusImobilizado() : self
- Set the value of statusImobilizado
- setTaxaAdministracao() : self
- Set the value of taxaAdministracao
- setTotalAnexo() : self
- Set the value of totalAnexo
- 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
= ['exclude_fields' => ['dataHora']]
const_values
public
mixed
const_values
= []
database
public
mixed
database
= \config\Config::DB_DEFAULT
db_table
public
mixed
db_table
= 'finan_rendimento'
pk_field
public
mixed
pk_field
= 'idRendimento'
sanitize
Estrutura = ['key' => 'rule']
public
mixed
sanitize
= []
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= ['update' => 'src\models\RendimentoSecurity::securityUpdate']
tracking
public
mixed
tracking
= true
validations
Estrutura = ['key' => ['keyRule' => 'Rule message']]
public
mixed
validations
= [
'data' => ['required' => 'O campo Data Abertura Aplicação é requerido.', 'date' => 'O campo Data Abertura Aplicação não tem data válida.', 'varificaDataAtual' => 'A Data Abertura Aplicação não pode ser maior que a data atual.'],
'idEntidade' => ['required' => 'O campo Entidade Contratada é requerido.'],
'idEntidadeContratada' => ['required' => 'O campo Fornecedor é requerido.'],
'idContaBancaria' => ['required' => 'O campo Conta Bancária é requerido.'],
'idTipoRendimento' => ['required' => 'O campo Tipo de Rendimento é requerido.'],
'idPlanoConta' => ['required' => 'O campo Conta RendimentoPositivo é requerido.'],
'idPlanoContaJurosNeg' => ['required' => 'O campo Conta Rendimento Negativo é requerido.'],
'idUnidadeNegocio' => ['required' => 'O campo Unidade Negocio é requerido.'],
'prazoCarencia' => ['required' => 'O campo Prazo Carência (Dias) é requerido.'],
//'participaCDI' => ['required' => 'O campo DI Rendimento é requerido.'],
'taxaAdministracao' => ['required' => 'O campo Taxa de Administração é requerido.'],
'jurosRentabilidade' => ['required' => 'O campo Juros Mensal Projetado é requerido.'],
'descricaoRendimento' => ['required' => 'O campo Descrição Rendimento é requerido.'],
]
Properties
$data
private
mixed
$data
$dataFinalResgate
private
mixed
$dataFinalResgate
$dataHora
private
mixed
$dataHora
$descricaoRendimento
private
mixed
$descricaoRendimento
$idContaBancaria
private
mixed
$idContaBancaria
$idEntidade
private
mixed
$idEntidade
$idEntidadeContratada
private
mixed
$idEntidadeContratada
$idFazenda
private
mixed
$idFazenda
$idNegocio
private
mixed
$idNegocio
$idPlanoConta
private
mixed
$idPlanoConta
$idPlanoContaJurosNeg
private
mixed
$idPlanoContaJurosNeg
$idRendimento
private
mixed
$idRendimento
$idTipoRendimento
private
mixed
$idTipoRendimento
$idUnidadeNegocio
private
mixed
$idUnidadeNegocio
$idUsuario
private
mixed
$idUsuario
$jurosRentabilidade
private
mixed
$jurosRentabilidade
$prazoCarencia
private
mixed
$prazoCarencia
$saldoAtual
private
mixed
$saldoAtual
$saldoInicial
private
mixed
$saldoInicial
$status
private
mixed
$status
$statusFluxoCaixa
private
mixed
$statusFluxoCaixa
$statusImobilizado
private
mixed
$statusImobilizado
$taxaAdministracao
private
mixed
$taxaAdministracao
$totalAnexo
private
mixed
$totalAnexo
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
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
getData()
Get the value of data
public
getData() : mixed
getDatabase()
public
getDatabase() : mixed
getDataFinalResgate()
Get the value of dataFinalResgate
public
getDataFinalResgate() : mixed
getDataHora()
Get the value of dataHora
public
getDataHora() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getDescricaoRendimento()
Get the value of descricaoRendimento
public
getDescricaoRendimento() : mixed
getIdContaBancaria()
Get the value of idContaBancaria
public
getIdContaBancaria() : mixed
getIdEntidade()
Get the value of idEntidade
public
getIdEntidade() : mixed
getIdEntidadeContratada()
Get the value of idEntidadeContratada
public
getIdEntidadeContratada() : mixed
getIdFazenda()
Get the value of idFazenda
public
getIdFazenda() : mixed
getIdNegocio()
Get the value of idNegocio
public
getIdNegocio() : mixed
getIdPlanoConta()
Get the value of idPlanoConta
public
getIdPlanoConta() : mixed
getIdPlanoContaJurosNeg()
Get the value of idPlanoContaJurosNeg
public
getIdPlanoContaJurosNeg() : mixed
getIdRendimento()
Get the value of idRendimento
public
getIdRendimento() : mixed
getIdTipoRendimento()
Get the value of idTipoRendimento
public
getIdTipoRendimento() : mixed
getIdUnidadeNegocio()
Get the value of idUnidadeNegocio
public
getIdUnidadeNegocio() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getJurosRentabilidade()
Get the value of jurosRentabilidade
public
getJurosRentabilidade() : mixed
getParticipaCDI()
Get the value of participaCDI
public
getParticipaCDI() : mixed
getPrazoCarencia()
Get the value of prazoCarencia
public
getPrazoCarencia() : mixed
getSaldoAtual()
Get the value of saldoAtual
public
getSaldoAtual() : mixed
getSaldoInicial()
Get the value of saldoInicial
public
getSaldoInicial() : mixed
getStatus()
Get the value of status
public
getStatus() : mixed
getStatusFluxoCaixa()
Get the value of statusFluxoCaixa
public
getStatusFluxoCaixa() : mixed
getStatusImobilizado()
Get the value of statusImobilizado
public
getStatusImobilizado() : mixed
getTable()
public
getTable() : mixed
getTaxaAdministracao()
Get the value of taxaAdministracao
public
getTaxaAdministracao() : mixed
getTotalAnexo()
Get the value of totalAnexo
public
getTotalAnexo() : 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
setData()
Set the value of data
public
setData(mixed $data) : self
Parameters
- $data : mixed
Return values
selfsetDataFinalResgate()
Set the value of dataFinalResgate
public
setDataFinalResgate(mixed $dataFinalResgate) : self
Parameters
- $dataFinalResgate : mixed
Return values
selfsetDataHora()
Set the value of dataHora
public
setDataHora(mixed $dataHora) : self
Parameters
- $dataHora : mixed
Return values
selfsetDescricaoRendimento()
Set the value of descricaoRendimento
public
setDescricaoRendimento(mixed $descricaoRendimento) : self
Parameters
- $descricaoRendimento : mixed
Return values
selfsetIdContaBancaria()
Set the value of idContaBancaria
public
setIdContaBancaria(mixed $idContaBancaria) : self
Parameters
- $idContaBancaria : mixed
Return values
selfsetIdEntidade()
Set the value of idEntidade
public
setIdEntidade(mixed $idEntidade) : self
Parameters
- $idEntidade : mixed
Return values
selfsetIdEntidadeContratada()
Set the value of idEntidadeContratada
public
setIdEntidadeContratada(mixed $idEntidadeContratada) : self
Parameters
- $idEntidadeContratada : mixed
Return values
selfsetIdFazenda()
Set the value of idFazenda
public
setIdFazenda(mixed $idFazenda) : self
Parameters
- $idFazenda : mixed
Return values
selfsetIdNegocio()
Set the value of idNegocio
public
setIdNegocio(mixed $idNegocio) : self
Parameters
- $idNegocio : mixed
Return values
selfsetIdPlanoConta()
Set the value of idPlanoConta
public
setIdPlanoConta(mixed $idPlanoConta) : self
Parameters
- $idPlanoConta : mixed
Return values
selfsetIdPlanoContaJurosNeg()
Set the value of idPlanoContaJurosNeg
public
setIdPlanoContaJurosNeg(mixed $idPlanoContaJurosNeg) : self
Parameters
- $idPlanoContaJurosNeg : mixed
Return values
selfsetIdRendimento()
Set the value of idRendimento
public
setIdRendimento(mixed $idRendimento) : self
Parameters
- $idRendimento : mixed
Return values
selfsetIdTipoRendimento()
Set the value of idTipoRendimento
public
setIdTipoRendimento(mixed $idTipoRendimento) : self
Parameters
- $idTipoRendimento : mixed
Return values
selfsetIdUnidadeNegocio()
Set the value of idUnidadeNegocio
public
setIdUnidadeNegocio(mixed $idUnidadeNegocio) : self
Parameters
- $idUnidadeNegocio : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetJurosRentabilidade()
Set the value of jurosRentabilidade
public
setJurosRentabilidade(mixed $jurosRentabilidade) : self
Parameters
- $jurosRentabilidade : mixed
Return values
selfsetParticipaCDI()
Set the value of participaCDI
public
setParticipaCDI(mixed $participaCDI) : self
Parameters
- $participaCDI : mixed
Return values
selfsetPrazoCarencia()
Set the value of prazoCarencia
public
setPrazoCarencia(mixed $prazoCarencia) : self
Parameters
- $prazoCarencia : mixed
Return values
selfsetSaldoAtual()
Set the value of saldoAtual
public
setSaldoAtual(mixed $saldoAtual) : self
Parameters
- $saldoAtual : mixed
Return values
selfsetSaldoInicial()
Set the value of saldoInicial
public
setSaldoInicial(mixed $saldoInicial) : self
Parameters
- $saldoInicial : mixed
Return values
selfsetStatus()
Set the value of status
public
setStatus(mixed $status) : self
Parameters
- $status : mixed
Return values
selfsetStatusFluxoCaixa()
Set the value of statusFluxoCaixa
public
setStatusFluxoCaixa(mixed $statusFluxoCaixa) : self
Parameters
- $statusFluxoCaixa : mixed
Return values
selfsetStatusImobilizado()
Set the value of statusImobilizado
public
setStatusImobilizado(mixed $statusImobilizado) : self
Parameters
- $statusImobilizado : mixed
Return values
selfsetTaxaAdministracao()
Set the value of taxaAdministracao
public
setTaxaAdministracao(mixed $taxaAdministracao) : self
Parameters
- $taxaAdministracao : mixed
Return values
selfsetTotalAnexo()
Set the value of totalAnexo
public
setTotalAnexo(mixed $totalAnexo) : self
Parameters
- $totalAnexo : 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 = '*'