This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from lifestyle-publications/guzzle7
Update to Guzzle 7.x and PhpUnit 8.x
- Loading branch information
Showing
17 changed files
with
204 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
/build/logs/ | ||
/vendor/ | ||
composer.lock | ||
/.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
language: php | ||
|
||
php: | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
- 7.4 | ||
- 8.0 | ||
|
||
before_install: | ||
- composer selfupdate | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,108 +6,107 @@ | |
|
||
namespace SwiftSparkPost; | ||
|
||
use Swift_Mime_Message; | ||
use Swift_OutputByteStream; | ||
|
||
/** | ||
* @copyright Future500 B.V. | ||
* @author Jasper N. Brouwer <[email protected]> | ||
*/ | ||
interface ExtendedMessage extends Swift_Mime_Message | ||
interface ExtendedMessage | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
public function getCampaignId(); | ||
public function getCampaignId(): string; | ||
|
||
/** | ||
* @param string $campaignId | ||
* | ||
* @return static | ||
*/ | ||
public function setCampaignId($campaignId); | ||
public function setCampaignId(string $campaignId): ExtendedMessage; | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getPerRecipientTags(); | ||
public function getPerRecipientTags(): array; | ||
|
||
/** | ||
* @param string $recipient | ||
* @param array $tags | ||
* | ||
* @return static | ||
*/ | ||
public function setPerRecipientTags($recipient, array $tags); | ||
public function setPerRecipientTags(string $recipient, array $tags): ExtendedMessage; | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getMetadata(); | ||
public function getMetadata(): array; | ||
|
||
/** | ||
* @param array $metadata | ||
* | ||
* @return static | ||
*/ | ||
public function setMetadata(array $metadata); | ||
public function setMetadata(array $metadata): ExtendedMessage; | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getPerRecipientMetadata(); | ||
public function getPerRecipientMetadata(): array; | ||
|
||
/** | ||
* @param string $recipient | ||
* @param array $metadata | ||
* | ||
* @return static | ||
*/ | ||
public function setPerRecipientMetadata($recipient, array $metadata); | ||
public function setPerRecipientMetadata(string $recipient, array $metadata): ExtendedMessage; | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getSubstitutionData(); | ||
public function getSubstitutionData(): array; | ||
|
||
/** | ||
* @param array $substitutionData | ||
* | ||
* @return static | ||
*/ | ||
public function setSubstitutionData(array $substitutionData); | ||
public function setSubstitutionData(array $substitutionData): ExtendedMessage; | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getPerRecipientSubstitutionData(); | ||
public function getPerRecipientSubstitutionData(): array; | ||
|
||
/** | ||
* @param string $recipient | ||
* @param array $substitutionData | ||
* | ||
* @return static | ||
*/ | ||
public function setPerRecipientSubstitutionData($recipient, array $substitutionData); | ||
public function setPerRecipientSubstitutionData(string $recipient, array $substitutionData): ExtendedMessage; | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getOptions(); | ||
public function getOptions(): array; | ||
|
||
/** | ||
* @param array $options | ||
* | ||
* @return static | ||
*/ | ||
public function setOptions(array $options); | ||
public function setOptions(array $options): ExtendedMessage; | ||
|
||
/** | ||
* @param string|Swift_OutputByteStream $body | ||
* @param string|null $contentType | ||
* @param string|null $charset | ||
* @param string|null $contentType | ||
* @param string|null $charset | ||
* | ||
* @return static | ||
*/ | ||
public function addPart($body, $contentType = null, $charset = null); | ||
public function addPart($body, string $contentType = null, string $charset = null); | ||
} |
Oops, something went wrong.