✏️ 正在编辑: EmailConfiguracao.php
路径:
/srv/systems_dir/yuppiecred-bkp/application/models/EmailConfiguracao.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php use Doctrine\Common\Collections\ArrayCollection; class Model_EmailConfiguracao { /** @var string */ public const ERRO = 'Nenhuma email encontrado.'; /** @var Model_DbTable_EmailConfiguracao */ private $table; public function __construct() { $this->table = table('email-configuracao'); } /** * @return ArrayCollection */ public function getEmailsRelatorio(): ArrayCollection { $emails = $this->table->findEmailsRelatorio(); if ($emails->isEmpty()) { throw new DomainException(self::ERRO); } return $emails; } /** * @return ArrayCollection */ public function getEmailsNotificacaoCampanha(): ArrayCollection { $emails = $this->table->findEmailsNotificacaoCampanha(); if ($emails->isEmpty()) { throw new DomainException(self::ERRO); } return $emails; } }
💾 保存文件
← 返回文件管理器