Browse Source

Agregado método __toString

Daniel Libonati 8 năm trước cách đây
mục cha
commit
ac910fa96d
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  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);
+    }
+
 }