Skip to content
Browse files

added missing deleteAccount call

  • Loading branch information...
1 parent fa2f8ea commit 01f4b56879496672d2b675612a5de5f0c9b35034 @dominikgehl dominikgehl committed Aug 1, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 class.contextio.php
View
7 class.contextio.php
@@ -733,6 +733,13 @@ public function getAccount($account) {
return $this->get($account);
}
+ public function deleteAccount($account) {
+ if (is_null($account) || ! is_string($account) || (! strpos($account, '@') === false)) {
+ throw new InvalidArgumentException('account must be string representing accountId');
+ }
+ return $this->delete($account);
+ }
+
public function listAccountEmailAddresses($account) {
if (is_null($account) || ! is_string($account) || (! strpos($account, '@') === false)) {
throw new InvalidArgumentException('account must be string representing accountId');

0 comments on commit 01f4b56

Please sign in to comment.
Something went wrong with that request. Please try again.