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