Permalink
Browse files

Added __toString to Kohana_OAuth_Token

  • Loading branch information...
1 parent 63e128a commit 9f15e3f1c19d54dd3e54c8ece53dae52b6da7a4b Geert De Deckere committed Jul 26, 2010
Showing with 10 additions and 0 deletions.
  1. +10 −0 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

0 comments on commit 9f15e3f

Please sign in to comment.