Explorar o código

Agregado método __toString

Daniel Libonati %!s(int64=8) %!d(string=hai) anos
pai
achega
ac910fa96d
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      Entity/OAuthClient.php

+ 6 - 1
Entity/OAuthClient.php

@@ -18,10 +18,15 @@ class OAuthClient extends BaseClient
      */
     protected $id;
 
-    
+
     public function __construct()
     {
         parent::__construct();
     }
 
+    public function __toString()
+    {
+        return strval($this->id);
+    }
+
 }