Server IP : 172.67.157.199 / Your IP : 18.117.12.254 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/src/Email/ |
Upload File : |
<?php namespace GoDaddy\WordPress\MWC\Core\Email; use GoDaddy\WordPress\MWC\Common\Email\Email; use GoDaddy\WordPress\MWC\Common\Helpers\ArrayHelper; use GoDaddy\WordPress\MWC\Core\Features\EmailNotifications\Contracts\ConditionalEmailContract; use GoDaddy\WordPress\MWC\Core\Features\EmailNotifications\Contracts\DelayableEmailContract; use GoDaddy\WordPress\MWC\Core\Features\EmailNotifications\Contracts\RenderableEmailContract; class RenderableEmail extends Email implements RenderableEmailContract, ConditionalEmailContract, DelayableEmailContract { /** * @var array assoc. array of variables used to substitute merge tags when rendering the email. */ protected $variables = []; // @TODO: Review CreateScheduledEmailInput parameters structure (MWC-5004) {acastro1 2022-03-22} /** @var int|null timestamp at which the email should be sent, or null for immediately */ protected $sendAt = null; /** * @var array conditions under which the email should be sent. */ protected $conditions = []; /** * {@inheritdoc} */ public function getVariables() : array { return $this->variables; } /** * {@inheritdoc} */ public function setVariables(array $value) : RenderableEmail { $this->variables = $value; return $this; } /** * {@inheritdoc} */ public function getConditions() : array { return $this->conditions; } /** * {@inheritdoc} */ public function setConditions(array $conditions) : ConditionalEmailContract { $this->conditions = $conditions; return $this; } /** * {@inheritdoc} */ public function getBodyFormat() : string { return ArrayHelper::get([ 'text/html' => 'html', 'text/mjml' => 'mjml', 'text/plain' => 'plain', ], $this->getContentType(), 'html'); } /** * {@inheritdoc} */ public function getSendAt() : ?int { return $this->sendAt; } /** * {@inheritdoc} */ public function setSendAt(?int $value) : DelayableEmailContract { $this->sendAt = $value; return $this; } }