Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/extensions/EmailNotifications/vendor/async-aws/ses/src/ValueObject/Body.php
Ðазад
<?php namespace AsyncAws\Ses\ValueObject; /** * Represents the body of the email message. */ final class Body { /** * An object that represents the version of the message that is displayed in email clients that don't support HTML, or * clients where the recipient has disabled HTML rendering. * * @var Content|null */ private $text; /** * An object that represents the version of the message that is displayed in email clients that support HTML. HTML * messages can include formatted text, hyperlinks, images, and more. * * @var Content|null */ private $html; /** * @param array{ * Text?: null|Content|array, * Html?: null|Content|array, * } $input */ public function __construct(array $input) { $this->text = isset($input['Text']) ? Content::create($input['Text']) : null; $this->html = isset($input['Html']) ? Content::create($input['Html']) : null; } /** * @param array{ * Text?: null|Content|array, * Html?: null|Content|array, * }|Body $input */ public static function create($input): self { return $input instanceof self ? $input : new self($input); } public function getHtml(): ?Content { return $this->html; } public function getText(): ?Content { return $this->text; } /** * @internal */ public function requestBody(): array { $payload = []; if (null !== $v = $this->text) { $payload['Text'] = $v->requestBody(); } if (null !== $v = $this->html) { $payload['Html'] = $v->requestBody(); } return $payload; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка