✏️ 正在编辑: ReprocessamentoDto.php
路径:
/srv/systems_dir/yuppiecred-lidernegocios/application/Modules/Callcenter/Dto/ReprocessamentoDto.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php namespace Modules\Callcenter\Dto; use Modules\Callcenter\Service\CallcenterCampanhaService; use Modules\Core\Dto\DtoAbstract; class ReprocessamentoDto extends DtoAbstract { /** @var int|null */ protected $id; /** @var string|string[]|null */ protected $status_atendimento; /** @var string|string[]|null */ protected $status_discador; /** @var mixed */ protected $campanha_id; /** @var string|null */ protected $valor_parcela_de; /** @var string|null */ protected $valor_parcela_a; /** @var string|null */ protected $margem_consignado_de; /** @var string|null */ protected $margem_consignado_a; /** @var string|null */ protected $margem_cartao_de; /** @var string|null */ protected $margem_cartao_a; /** @var string|null */ protected $margem_bens_duraveis_de; /** @var string|null */ protected $margem_bens_duraveis_a; /** @var bool|null */ protected $telefone; /** @var bool|null */ protected $ativo; /** @var int|null */ protected $usuario_carteirizacao; /** @var string|null */ protected $uf; /** @var string|null */ protected $cidade; /** @var int|null */ protected $data_final_atendimento; /** @var int|null */ protected $validar_idade_de; /** @var int|null */ protected $validar_idade_a; /** @var string|null */ protected $data_higienizacao_de; /** @var string|null */ protected $data_higienizacao_a; /** @var bool|null */ protected $retirar_carteirizacao; /** @var string|null */ protected $opcao_ura_reversa; /** @var bool */ protected $automatizar; /** @var float|null */ protected $percentual_campanha; /** @var int|null */ protected $numero_reprocessamentos; /** @var int|null */ protected $enviar_discador; /** * @return string|null */ public function getDataHigienizacaoDe(): ?string { return $this->dateFormat($this->data_higienizacao_de); } /** * @return string|null */ public function getDataHigienizacaoA(): ?string { return $this->dateFormat($this->data_higienizacao_a); } /** * @return string|null */ public function getDataFinalAtendimento(): ?string { return $this->dateFormat($this->data_final_atendimento); } /** * @return string */ public function getMargemBensDuraveisDe(): string { return $this->toNumber($this->margem_bens_duraveis_de); } /** * @return string */ public function getMargemBensDuraveisA(): string { return $this->toNumber($this->margem_bens_duraveis_a); } /** * @return string */ public function getValorParcelaDe(): string { return $this->toNumber($this->valor_parcela_de); } /** * @return string */ public function getValorParcelaA(): string { return $this->toNumber($this->valor_parcela_a); } /** * @return string */ public function getMargemConsignadoDe(): string { return $this->toNumber($this->margem_consignado_de); } /** * @return string */ public function getMargemConsignadoA(): string { return $this->toNumber($this->margem_consignado_a); } /** * @return string */ public function getMargemCartaoDe(): string { return $this->toNumber($this->margem_cartao_de); } /** * @return string */ public function getMargemCartaoA(): string { return $this->toNumber($this->margem_cartao_a); } /** * @param $value */ public function setStatusAtendimento($value) { $this->status_atendimento = $this->formatToSetMultiOptions($value); } /** * @return false|string|string[]|null */ public function getStatusAtendimento() { return $this->formatToGetMultiOption('status_atendimento'); } /** * @param $value */ public function setStatusDiscador($value) { $this->status_discador = $this->formatToSetMultiOptions($value); } /** * @return false|string|string[]|null */ public function getStatusDiscador() { return $this->formatToGetMultiOption('status_discador'); } /** * @param $value */ public function setCampanhaId($value) { $this->campanha_id = (new CallcenterCampanhaService())->getById($value); } /** * @return CallcenterCampanhaDto|int */ public function getCampanhaId() { return $this->campanha_id; } /** * @return string */ public function getOpcaoUraReversa(): string { return $this->opcao_ura_reversa ?? '#'; } /** * @return int|null */ public function getEnviarDiscador(): ?int { return $this->enviar_discador; } /** * @return int|null */ public function getTelefone(): ?int { if ($this->telefone === "") { return null; } return $this->telefone; } /** * @return int|null */ public function getAtivo(): ?int { if ($this->ativo === "") { return null; } return $this->ativo; } /** * @return int|null */ public function getRetirarCarteirizacao(): ?int { if ($this->retirar_carteirizacao === "") { return null; } return $this->retirar_carteirizacao; } /** @return bool */ public function isPercentualAtingido(): bool { return $this->getCampanhaId() && $this->getCampanhaId()->getPercentualAtendidos() >= $this->percentual_campanha; } /** * @return bool */ public function isLimitReprocessamentosAtingido(): bool { return $this->getCampanhaId() && $this->getCampanhaId()->getReprocessamentosRealizados() >= $this->numero_reprocessamentos; } /** * @return float|null */ public function getPercentualCampanha(): ?float { return $this->percentual_campanha; } }
💾 保存文件
← 返回文件管理器