✏️ 正在编辑: BancoBrasil.php
路径:
/srv/systems_dir/yuppiecred-lidernegocios/library/Core/Banco/Remessa/BancoBrasil.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php use Core_Banco_Remessa_Value_BancoBrasil as Value; use Core_Banco_Remessa_Config_BancoBrasil as Config; class Core_Banco_Remessa_BancoBrasil extends Core_Banco_Remessa_Abstract { /** * @return string */ protected function gerarHeaderArquivo(): string { return $this->formatarNew( Config::headerArquivo(), Value::headerArquivo($this) ); } /** * @return string */ protected function gerarHeaderLote(): string { return $this->formatarNew( Config::headerLote(), Value::headerLote($this) ); } /** * @param array $pagamento * @return string */ protected function gerarSegmentoA(array $pagamento): string { return $this->formatarNew( Config::segmentoA(), Value::segmentoA($this, $pagamento) ); } /** * @param array $pagamento * @return string */ protected function gerarSegmentoB(array $pagamento): string { return $this->formatarNew( Config::segmentoB(), Value::segmentoB($this, $pagamento) ); } protected function gerarTraillerLote(): string { return $this->formatarNew( Config::traillerLote(), Value::traillerLote($this) ); } protected function gerarTraillerArquivo(): string { return $this->formatarNew( Config::traillerArquivo(), Value::traillerArquivo($this) ); } public function gerarLinhas(): void { $this->arquivo[] = $this->gerarHeaderArquivo(); $this->arquivo[] = $this->gerarHeaderLote(); $this->gerarTransacoes(); $this->arquivo[] = $this->gerarTraillerLote(); $this->arquivo[] = $this->gerarTraillerArquivo(); } public function gerarTransacoes(): void { foreach ($this->pagamentos as $pagamento) { $this->arquivo[] = $this->gerarSegmentoA($pagamento); $this->arquivo[] = $this->gerarSegmentoB($pagamento); } } /** * @return string */ public function getFileNameDownload(): string { return $this->getFileName() . "." . $this->getExtensao(); } }
💾 保存文件
← 返回文件管理器