Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added __toString to Kohana_OAuth_Token

  • Loading branch information...
commit 9f15e3f1c19d54dd3e54c8ece53dae52b6da7a4b 1 parent 63e128a
Geert De Deckere authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 classes/kohana/oauth/token.php
View
10 classes/kohana/oauth/token.php
@@ -81,4 +81,14 @@ public function __get($key)
return $this->$key;
}
+ /**
+ * Returns the token key.
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return (string) $this->token;
+ }
+
} // End OAuth_Token
Please sign in to comment.
Something went wrong with that request. Please try again.