Skip to content

Commit 55249d4

Browse files
committed
Merge pull request #16 from dstotijn/master
Add missing getter functions for Hlr and VoiceMessage resources
2 parents 38da58f + 7b4ae4a commit 55249d4

File tree

4 files changed

+62
-2
lines changed

4 files changed

+62
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "messagebird/php-rest-api",
33
"description": "MessageBird REST API client for PHP",
4-
"version": "1.3.1",
4+
"version": "1.4.0",
55
"type": "library",
66
"homepage": "https://github.com/messagebird/php-rest-api",
77
"license": "BSD-2-Clause",

src/MessageBird/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Client
1212

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

15-
const CLIENT_VERSION = '1.3.1';
15+
const CLIENT_VERSION = '1.4.0';
1616

1717
/**
1818
* @var string

src/MessageBird/Objects/Hlr.php

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,44 @@ class Hlr extends Base
7171
* @var string
7272
*/
7373
protected $statusDatetime;
74+
75+
/**
76+
* Get the created id
77+
*
78+
* @return mixed
79+
*/
80+
public function getId()
81+
{
82+
return $this->id;
83+
}
84+
85+
/**
86+
* Get the created href
87+
*
88+
* @return string
89+
*/
90+
public function getHref()
91+
{
92+
return $this->href;
93+
}
94+
95+
/**
96+
* Get the date and time the resource was created
97+
*
98+
* @return string
99+
*/
100+
public function getCreatedDatetime()
101+
{
102+
return $this->createdDatetime;
103+
}
104+
105+
/**
106+
* Get the date and time the resource was created
107+
*
108+
* @return string
109+
*/
110+
public function getStatusDatetime()
111+
{
112+
return $this->statusDatetime;
113+
}
74114
}

src/MessageBird/Objects/VoiceMessage.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,26 @@ public function getId()
111111
return $this->id;
112112
}
113113

114+
/**
115+
* Get the created href
116+
*
117+
* @return string
118+
*/
119+
public function getHref()
120+
{
121+
return $this->href;
122+
}
123+
124+
/**
125+
* Get the date and time the resource was created
126+
*
127+
* @return string
128+
*/
129+
public function getCreatedDatetime()
130+
{
131+
return $this->createdDatetime;
132+
}
133+
114134
/**
115135
* @param $object
116136
*

0 commit comments

Comments
 (0)