浏览代码

Agregado método __toString

Daniel Libonati 8 年之前
父节点
当前提交
ac910fa96d
共有 1 个文件被更改,包括 6 次插入1 次删除
  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);
+    }
+
 }