From 21db8a793fd8ed785a2e845551ec3c623320b9b7 Mon Sep 17 00:00:00 2001 From: David Stotijn Date: Thu, 21 Jan 2016 14:16:45 +0100 Subject: [PATCH 1/3] Add missing getter functions for Hlr and VoiceMessage resources --- src/MessageBird/Objects/Hlr.php | 40 ++++++++++++++++++++++++ src/MessageBird/Objects/VoiceMessage.php | 20 ++++++++++++ 2 files changed, 60 insertions(+) diff --git a/src/MessageBird/Objects/Hlr.php b/src/MessageBird/Objects/Hlr.php index a2eb069c..a46c96ef 100644 --- a/src/MessageBird/Objects/Hlr.php +++ b/src/MessageBird/Objects/Hlr.php @@ -71,4 +71,44 @@ class Hlr extends Base * @var string */ protected $statusDatetime; + + /** + * Get the created id + * + * @return mixed + */ + public function getId() + { + return $this->id; + } + + /** + * Get the created href + * + * @return string + */ + public function getHref() + { + return $this->href; + } + + /** + * Get the date and time the resource was created + * + * @return string + */ + public function getCreatedDatetime() + { + return $this->createdDatetime; + } + + /** + * Get the date and time the resource was created + * + * @return string + */ + public function getStatusDatetime() + { + return $this->statusDatetime; + } } diff --git a/src/MessageBird/Objects/VoiceMessage.php b/src/MessageBird/Objects/VoiceMessage.php index 734d96d6..d19afe57 100644 --- a/src/MessageBird/Objects/VoiceMessage.php +++ b/src/MessageBird/Objects/VoiceMessage.php @@ -111,6 +111,26 @@ public function getId() return $this->id; } + /** + * Get the created href + * + * @return string + */ + public function getHref() + { + return $this->href; + } + + /** + * Get the date and time the resource was created + * + * @return string + */ + public function getCreatedDatetime() + { + return $this->createdDatetime; + } + /** * @param $object * From 20ab62dda5f8142ad532d7cdea68fc507daf540d Mon Sep 17 00:00:00 2001 From: David Stotijn Date: Thu, 21 Jan 2016 14:21:40 +0100 Subject: [PATCH 2/3] Bump version number to 1.3.2 --- composer.json | 2 +- src/MessageBird/Client.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 28fcc1d2..fb577511 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "messagebird/php-rest-api", "description": "MessageBird REST API client for PHP", - "version": "1.3.1", + "version": "1.3.2", "type": "library", "homepage": "https://github.com/messagebird/php-rest-api", "license": "BSD-2-Clause", diff --git a/src/MessageBird/Client.php b/src/MessageBird/Client.php index 127c409f..6d7b3460 100644 --- a/src/MessageBird/Client.php +++ b/src/MessageBird/Client.php @@ -12,7 +12,7 @@ class Client const ENDPOINT = 'https://rest.messagebird.com'; - const CLIENT_VERSION = '1.3.1'; + const CLIENT_VERSION = '1.3.2'; /** * @var string From 7b4ae4a359cf0ed24e57dc8f4626c7f7641eb316 Mon Sep 17 00:00:00 2001 From: David Stotijn Date: Thu, 21 Jan 2016 17:17:39 +0100 Subject: [PATCH 3/3] Revise version number bump --- composer.json | 2 +- src/MessageBird/Client.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index fb577511..9ebd6b44 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "messagebird/php-rest-api", "description": "MessageBird REST API client for PHP", - "version": "1.3.2", + "version": "1.4.0", "type": "library", "homepage": "https://github.com/messagebird/php-rest-api", "license": "BSD-2-Clause", diff --git a/src/MessageBird/Client.php b/src/MessageBird/Client.php index 6d7b3460..6c9263bf 100644 --- a/src/MessageBird/Client.php +++ b/src/MessageBird/Client.php @@ -12,7 +12,7 @@ class Client const ENDPOINT = 'https://rest.messagebird.com'; - const CLIENT_VERSION = '1.3.2'; + const CLIENT_VERSION = '1.4.0'; /** * @var string