Преглед изворни кода

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);
+    }
+
 }