소스 검색

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