Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "messagebird/php-rest-api",
"description": "MessageBird REST API client for PHP",
"version": "1.3.1",
"version": "1.4.0",
"type": "library",
"homepage": "https://github.com/messagebird/php-rest-api",
"license": "BSD-2-Clause",
Expand Down
2 changes: 1 addition & 1 deletion src/MessageBird/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Client

const ENDPOINT = 'https://rest.messagebird.com';

const CLIENT_VERSION = '1.3.1';
const CLIENT_VERSION = '1.4.0';

/**
* @var string
Expand Down
40 changes: 40 additions & 0 deletions src/MessageBird/Objects/Hlr.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
20 changes: 20 additions & 0 deletions src/MessageBird/Objects/VoiceMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down