Skip to content

Commit

Permalink
Generate the property type for generated objects (#1467)
Browse files Browse the repository at this point in the history
  • Loading branch information
stof authored Jul 3, 2023
1 parent 8f986a5 commit cb7f9cd
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Result/SendEmailResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class SendEmailResponse extends Result
* > It's possible for Amazon SES to accept a message without sending it. This can happen when the message that you're
* > trying to send has an attachment contains a virus, or when you send a templated email that contains invalid
* > personalization content, for example.
*
* @var string|null
*/
private $messageId;

Expand Down
4 changes: 4 additions & 0 deletions src/ValueObject/Body.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ 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;

Expand Down
4 changes: 4 additions & 0 deletions src/ValueObject/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ final class Content
{
/**
* The content of the message itself.
*
* @var string
*/
private $data;

/**
* The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES uses 7-bit ASCII by
* default. If the text includes characters outside of the ASCII range, you have to specify a character set. For
* example, you could specify `UTF-8`, `ISO-8859-1`, or `Shift_JIS`.
*
* @var string|null
*/
private $charset;

Expand Down
6 changes: 6 additions & 0 deletions src/ValueObject/Destination.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,22 @@ final class Destination
{
/**
* An array that contains the email addresses of the "To" recipients for the email.
*
* @var string[]|null
*/
private $toAddresses;

/**
* An array that contains the email addresses of the "CC" (carbon copy) recipients for the email.
*
* @var string[]|null
*/
private $ccAddresses;

/**
* An array that contains the email addresses of the "BCC" (blind carbon copy) recipients for the email.
*
* @var string[]|null
*/
private $bccAddresses;

Expand Down
6 changes: 6 additions & 0 deletions src/ValueObject/EmailContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ final class EmailContent
{
/**
* The simple email message. The message consists of a subject and a message body.
*
* @var Message|null
*/
private $simple;

Expand All @@ -29,11 +31,15 @@ final class EmailContent
* RFC 5321 [^1].
*
* [^1]: https://tools.ietf.org/html/rfc5321
*
* @var RawMessage|null
*/
private $raw;

/**
* The template to use for the email message.
*
* @var Template|null
*/
private $template;

Expand Down
4 changes: 4 additions & 0 deletions src/ValueObject/ListManagementOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ final class ListManagementOptions
{
/**
* The name of the contact list.
*
* @var string
*/
private $contactListName;

/**
* The name of the topic.
*
* @var string|null
*/
private $topicName;

Expand Down
4 changes: 4 additions & 0 deletions src/ValueObject/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ final class Message
* non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047 [^1].
*
* [^1]: https://tools.ietf.org/html/rfc2047
*
* @var Content
*/
private $subject;

/**
* The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.
*
* @var Body
*/
private $body;

Expand Down
4 changes: 4 additions & 0 deletions src/ValueObject/MessageTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ final class MessageTag
*
* - It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).
* - It can contain no more than 256 characters.
*
* @var string
*/
private $name;

Expand All @@ -23,6 +25,8 @@ final class MessageTag
*
* - It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).
* - It can contain no more than 256 characters.
*
* @var string
*/
private $value;

Expand Down
2 changes: 2 additions & 0 deletions src/ValueObject/RawMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ final class RawMessage
* RFC 5321 [^1].
*
* [^1]: https://tools.ietf.org/html/rfc5321
*
* @var string
*/
private $data;

Expand Down
6 changes: 6 additions & 0 deletions src/ValueObject/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,24 @@ final class Template
/**
* The name of the template. You will refer to this name when you send email using the `SendTemplatedEmail` or
* `SendBulkTemplatedEmail` operations.
*
* @var string|null
*/
private $templateName;

/**
* The Amazon Resource Name (ARN) of the template.
*
* @var string|null
*/
private $templateArn;

/**
* An object that defines the values to use for message variables in the template. This object is a set of key-value
* pairs. Each key defines a message variable in the template. The corresponding value defines the value to use for that
* variable.
*
* @var string|null
*/
private $templateData;

Expand Down

0 comments on commit cb7f9cd

Please sign in to comment.