Skip to content

Commit f93df84

Browse files
committed
Added string conversion for resources.
1 parent 52558b3 commit f93df84

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Application/Application.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,9 @@ public function jsonSerialize()
113113
'type' => 'voice' //currently the only type
114114
];
115115
}
116+
117+
public function __toString()
118+
{
119+
return (string) $this->getId();
120+
}
116121
}

src/Numbers/Number.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,9 @@ function jsonSerialize()
178178

179179
return $json;
180180
}
181+
182+
public function __toString()
183+
{
184+
return (string) $this->getId();
185+
}
181186
}

0 commit comments

Comments
 (0)