diff options
-rw-r--r-- | src/Core/Communicator.php | 4 | ||||
-rw-r--r-- | src/Recipient/BlacklistEntry.php | 11 | ||||
-rw-r--r-- | src/Recipient/Contact.php | 2 | ||||
-rw-r--r-- | src/Recipient/Group.php | 2 | ||||
-rw-r--r-- | src/Recipient/ProcessedBlacklistEntry.php | 11 | ||||
-rw-r--r-- | src/Recipient/ProcessedGroup.php | 2 | ||||
-rw-r--r-- | src/SMS/LoggedOutGoingSMS.php | 2 | ||||
-rw-r--r-- | tests/Core/AbstractEnviromentProvider.php | 11 | ||||
-rw-r--r-- | tests/Core/ClassValidationArrayTest.php | 2 | ||||
-rw-r--r-- | tests/General/ConstructorTest.php | 2 | ||||
-rw-r--r-- | tests/Recipient/BlacklistTest.php | 11 | ||||
-rw-r--r-- | tests/Recipient/ContactTest.php | 2 | ||||
-rw-r--r-- | tests/Recipient/GroupTest.php | 10 | ||||
-rw-r--r-- | tests/Recipient/ProcessedContactTest.php | 2 | ||||
-rw-r--r-- | tests/Recipient/ProcessedGroupTest.php | 11 | ||||
-rw-r--r-- | tests/SMS/LoggedOutGoingSMSTest.php | 11 | ||||
-rw-r--r-- | tests/SMS/OutGoingSMSTest.php | 2 | ||||
-rw-r--r-- | tests/Util/Util.php | 10 |
18 files changed, 92 insertions, 16 deletions
diff --git a/src/Core/Communicator.php b/src/Core/Communicator.php index 257a6a4..1417e4c 100644 --- a/src/Core/Communicator.php +++ b/src/Core/Communicator.php @@ -4,7 +4,7 @@ * @author Hannes Kindströmmer <hannes@kindstrommer.se> * @copyright 2017 IP1 SMS * @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 -* @version 0.1.0-beta +* @version 0.2.0-beta * @since File available since Release 0.1.0-beta * @link http://api.ip1sms.com/Help * @link https://github.com/iP1SMS/ip1-php-sdk @@ -94,11 +94,13 @@ class Communicator case "IP1\RESTClient\Recipient\ProcessedMembership": $response = $this->sendRequest("api/memberships/".$component->getID(), "DELETE"); return RecipientFactory::createProcessedMembershipFromJSON($response); + case "IP1\RESTClient\Recipient\ProcessedBlacklistEntry": $response = $this->sendRequest("api/blacklist/".$component->getID(), "DELETE"); $stdResponse = json_decode($response); $created = new \DateTime($stdResponse->Created); return new ProcessedBlacklistEntry($stdResponse->Phone, $stdResponse->ID, $created); + default: throw new \InvalidArgumentException("Given JsonSerializable not supported."); } diff --git a/src/Recipient/BlacklistEntry.php b/src/Recipient/BlacklistEntry.php index 506e8cb..05e37de 100644 --- a/src/Recipient/BlacklistEntry.php +++ b/src/Recipient/BlacklistEntry.php @@ -1,5 +1,14 @@ <?php - +/** +* PHP version 7.1.1 +* @author Hannes Kindströmmer <hannes@kindstrommer.se> +* @copyright 2017 IP1 SMS +* @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 +* @version 0.2.0-beta +* @since File available since Release 0.2.0-beta +* @link http://api.ip1sms.com/Help +* @link https://github.com/iP1SMS/ip1-php-sdk +*/ namespace IP1\RESTClient\Recipient; use IP1\RESTClient\Core\ProcessableComponentInterface; diff --git a/src/Recipient/Contact.php b/src/Recipient/Contact.php index b9c5dba..4b86bb7 100644 --- a/src/Recipient/Contact.php +++ b/src/Recipient/Contact.php @@ -4,7 +4,7 @@ * @author Hannes Kindströmmer <hannes@kindstrommer.se> * @copyright 2017 IP1 SMS * @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 -* @version 0.1.0-beta +* @version 0.2.0-beta * @since File available since Release 0.1.0-beta * @link http://api.ip1sms.com/Help * @link https://github.com/iP1SMS/ip1-php-sdk diff --git a/src/Recipient/Group.php b/src/Recipient/Group.php index 474f270..ee81d82 100644 --- a/src/Recipient/Group.php +++ b/src/Recipient/Group.php @@ -4,7 +4,7 @@ * @author Hannes Kindströmmer <hannes@kindstrommer.se> * @copyright 2017 IP1 SMS * @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 -* @version 0.1.0-beta +* @version 0.2.0-beta * @since File available since Release 0.1.0-beta * @link http://api.ip1sms.com/Help * @link https://github.com/iP1SMS/ip1-php-sdk diff --git a/src/Recipient/ProcessedBlacklistEntry.php b/src/Recipient/ProcessedBlacklistEntry.php index 9f3792b..cf2ffc4 100644 --- a/src/Recipient/ProcessedBlacklistEntry.php +++ b/src/Recipient/ProcessedBlacklistEntry.php @@ -1,5 +1,14 @@ <?php - +/** +* PHP version 7.1.1 +* @author Hannes Kindströmmer <hannes@kindstrommer.se> +* @copyright 2017 IP1 SMS +* @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 +* @version 0.2.0-beta +* @since File available since Release 0.2.0-beta +* @link http://api.ip1sms.com/Help +* @link https://github.com/iP1SMS/ip1-php-sdk +*/ namespace IP1\RESTClient\Recipient; use IP1\RESTClient\Core\ProcessedComponentInterface; diff --git a/src/Recipient/ProcessedGroup.php b/src/Recipient/ProcessedGroup.php index 76deca3..48e8605 100644 --- a/src/Recipient/ProcessedGroup.php +++ b/src/Recipient/ProcessedGroup.php @@ -4,7 +4,7 @@ * @author Hannes Kindströmmer <hannes@kindstrommer.se> * @copyright 2017 IP1 SMS * @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 -* @version 0.1.0-beta +* @version 0.2.0-beta * @since File available since Release 0.1.0-beta * @link http://api.ip1sms.com/Help * @link https://github.com/iP1SMS/ip1-php-sdk diff --git a/src/SMS/LoggedOutGoingSMS.php b/src/SMS/LoggedOutGoingSMS.php index 17b374f..31af23a 100644 --- a/src/SMS/LoggedOutGoingSMS.php +++ b/src/SMS/LoggedOutGoingSMS.php @@ -4,7 +4,7 @@ * @author Hannes Kindströmmer <hannes@kindstrommer.se> * @copyright 2017 IP1 SMS * @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 -* @version 0.1.0-beta +* @version 0.2.0-beta * @since File available since Release 0.1.0-beta * @link http://api.ip1sms.com/Help * @link https://github.com/iP1SMS/ip1-php-sdk diff --git a/tests/Core/AbstractEnviromentProvider.php b/tests/Core/AbstractEnviromentProvider.php index 38847ce..e48ad7f 100644 --- a/tests/Core/AbstractEnviromentProvider.php +++ b/tests/Core/AbstractEnviromentProvider.php @@ -1,5 +1,14 @@ <?php - +/** +* PHP version 7.1.1 +* @author Hannes Kindströmmer <hannes@kindstrommer.se> +* @copyright 2017 IP1 SMS +* @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 +* @version 0.2.0-beta +* @since File available since Release 0.2.0-beta +* @link http://api.ip1sms.com/Help +* @link https://github.com/iP1SMS/ip1-php-sdk +*/ namespace IP1\RESTClient\Test\Core; use PHPUnit\Framework\TestCase; diff --git a/tests/Core/ClassValidationArrayTest.php b/tests/Core/ClassValidationArrayTest.php index 5866fa5..f82819a 100644 --- a/tests/Core/ClassValidationArrayTest.php +++ b/tests/Core/ClassValidationArrayTest.php @@ -4,7 +4,7 @@ * @author Hannes Kindströmmer <hannes@kindstrommer.se> * @copyright 2017 IP1 SMS * @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 -* @version 0.1.0-beta +* @version 0.2.0-beta * @since File available since Release 0.1.0-beta * @link http://api.ip1sms.com/Help * @link https://github.com/iP1SMS/ip1-php-sdk diff --git a/tests/General/ConstructorTest.php b/tests/General/ConstructorTest.php index cdad880..dcc4142 100644 --- a/tests/General/ConstructorTest.php +++ b/tests/General/ConstructorTest.php @@ -4,7 +4,7 @@ * @author Hannes Kindströmmer <hannes@kindstrommer.se> * @copyright 2017 IP1 SMS * @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 -* @version 0.1.0-beta +* @version 0.2.0-beta * @since File available since Release 0.1.0-beta * @link http://api.ip1sms.com/Help * @link https://github.com/iP1SMS/ip1-php-sdk diff --git a/tests/Recipient/BlacklistTest.php b/tests/Recipient/BlacklistTest.php index 8cca72d..78b11ad 100644 --- a/tests/Recipient/BlacklistTest.php +++ b/tests/Recipient/BlacklistTest.php @@ -1,5 +1,14 @@ <?php - +/** +* PHP version 7.1.1 +* @author Hannes Kindströmmer <hannes@kindstrommer.se> +* @copyright 2017 IP1 SMS +* @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 +* @version 0.2.0-beta +* @since File available since Release 0.2.0-beta +* @link http://api.ip1sms.com/Help +* @link https://github.com/iP1SMS/ip1-php-sdk +*/ namespace IP1\RESTClient\Test\Recipient; use IP1\RESTClient\Test\Core\AbstractEnviromentProvider; diff --git a/tests/Recipient/ContactTest.php b/tests/Recipient/ContactTest.php index b246750..3c7e646 100644 --- a/tests/Recipient/ContactTest.php +++ b/tests/Recipient/ContactTest.php @@ -4,7 +4,7 @@ * @author Hannes Kindströmmer <hannes@kindstrommer.se> * @copyright 2017 IP1 SMS * @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 -* @version 0.1.0-beta +* @version 0.2.0-beta * @since File available since Release 0.1.0-beta * @link http://api.ip1sms.com/Help * @link https://github.com/iP1SMS/ip1-php-sdk diff --git a/tests/Recipient/GroupTest.php b/tests/Recipient/GroupTest.php index 5beef29..5a6b960 100644 --- a/tests/Recipient/GroupTest.php +++ b/tests/Recipient/GroupTest.php @@ -1,4 +1,14 @@ <?php +/** +* PHP version 7.1.1 +* @author Hannes Kindströmmer <hannes@kindstrommer.se> +* @copyright 2017 IP1 SMS +* @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 +* @version 0.2.0-beta +* @since File available since Release 0.2.0-beta +* @link http://api.ip1sms.com/Help +* @link https://github.com/iP1SMS/ip1-php-sdk +*/ namespace IP1\RESTClient\Test\Recipient; use PHPUnit\Framework\TestCase; diff --git a/tests/Recipient/ProcessedContactTest.php b/tests/Recipient/ProcessedContactTest.php index 493c967..bbb77ee 100644 --- a/tests/Recipient/ProcessedContactTest.php +++ b/tests/Recipient/ProcessedContactTest.php @@ -4,7 +4,7 @@ * @author Hannes Kindströmmer <hannes@kindstrommer.se> * @copyright 2017 IP1 SMS * @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 -* @version 0.1.0-beta +* @version 0.2.0-beta * @since File available since Release 0.1.0-beta * @link http://api.ip1sms.com/Help * @link https://github.com/iP1SMS/ip1-php-sdk diff --git a/tests/Recipient/ProcessedGroupTest.php b/tests/Recipient/ProcessedGroupTest.php index 4830881..8dd6460 100644 --- a/tests/Recipient/ProcessedGroupTest.php +++ b/tests/Recipient/ProcessedGroupTest.php @@ -1,5 +1,14 @@ <?php - +/** +* PHP version 7.1.1 +* @author Hannes Kindströmmer <hannes@kindstrommer.se> +* @copyright 2017 IP1 SMS +* @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 +* @version 0.2.0-beta +* @since File available since Release 0.2.0-beta +* @link http://api.ip1sms.com/Help +* @link https://github.com/iP1SMS/ip1-php-sdk +*/ namespace IP1\RESTClient\Test\Recipient; use IP1\RESTClient\Recipient\RecipientFactory; diff --git a/tests/SMS/LoggedOutGoingSMSTest.php b/tests/SMS/LoggedOutGoingSMSTest.php index 1810939..c53660c 100644 --- a/tests/SMS/LoggedOutGoingSMSTest.php +++ b/tests/SMS/LoggedOutGoingSMSTest.php @@ -1,5 +1,14 @@ <?php - +/** +* PHP version 7.1.1 +* @author Hannes Kindströmmer <hannes@kindstrommer.se> +* @copyright 2017 IP1 SMS +* @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 +* @version 0.2.0-beta +* @since File available since Release 0.2.0-beta +* @link http://api.ip1sms.com/Help +* @link https://github.com/iP1SMS/ip1-php-sdk +*/ namespace IP1\RESTClient\Test\SMS; use IP1\RESTClient\Test\Core\AbstractEnviromentProvider; diff --git a/tests/SMS/OutGoingSMSTest.php b/tests/SMS/OutGoingSMSTest.php index c31c027..2068f10 100644 --- a/tests/SMS/OutGoingSMSTest.php +++ b/tests/SMS/OutGoingSMSTest.php @@ -4,7 +4,7 @@ * @author Hannes Kindströmmer <hannes@kindstrommer.se> * @copyright 2017 IP1 SMS * @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 -* @version 0.1.0-beta +* @version 0.2.0-beta * @since File available since Release 0.1.0-beta * @link http://api.ip1sms.com/Help * @link https://github.com/iP1SMS/ip1-php-sdk diff --git a/tests/Util/Util.php b/tests/Util/Util.php index 0cde0fa..af9f85f 100644 --- a/tests/Util/Util.php +++ b/tests/Util/Util.php @@ -1,4 +1,14 @@ <?php +/** +* PHP version 7.1.1 +* @author Hannes Kindströmmer <hannes@kindstrommer.se> +* @copyright 2017 IP1 SMS +* @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 +* @version 0.2.0-beta +* @since File available since Release 0.2.0-beta +* @link http://api.ip1sms.com/Help +* @link https://github.com/iP1SMS/ip1-php-sdk +*/ namespace IP1\RESTClient\Test\Util; class Util |