. * * The interactive user interfaces in modified source and object code versions * of this program must display Appropriate Legal Notices, as required under * Section 5 of the GNU Affero General Public License version 3. * * In accordance with Section 7(b) of the GNU Affero General Public License version 3, * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. ************************************************************************/ namespace Espo\Tools\EmailTemplate; /** * Immutable. */ class Params { private bool $applyAcl = false; private bool $copyAttachments = false; public function applyAcl(): bool { return $this->applyAcl; } public function copyAttachments(): bool { return $this->copyAttachments; } /** * To apply ACL. */ public function withApplyAcl(bool $applyAcl = true): self { $obj = clone $this; $obj->applyAcl = $applyAcl; return $obj; } /** * To copy template attachments records. Not needed if an email not supposed to be stored. */ public function withCopyAttachments(bool $copyAttachments = true): self { $obj = clone $this; $obj->copyAttachments = $copyAttachments; return $obj; } public static function create(): self { return new self(); } }