What should I put as the return value for the docblock in the Laravel 4 eloquent model class -


i have following basic class setup:

class document extends eloquent {      /**      * [types description]      * @return [type] [description]      */     public function types() {         return $this->belongstomany('type');     }  } 

what value appropriate put in return type doc block? doing var dump of return method points object \illuminate\database\eloquent\relations\belongstomany

would correct in instance? (i'm not sure why if so?)

thanks

the same laravel using:

@return \illuminate\database\eloquent\relations\belongstomany 

take @ file

vendor\laravel\framework\src\illuminate\database\eloquent\model.php 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -