Advertisement
wingman007

AccessoryMethods for role and language

Aug 7th, 2013
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1.     /**
  2.      * Set role
  3.      *
  4.      * @param Role $role
  5.      * @return Users
  6.      */
  7.     public function setRole($role)
  8.     {
  9.         $this->role = $role;
  10.    
  11.         return $this;
  12.     }
  13.  
  14.     /**
  15.      * Get role
  16.      *
  17.      * @return Role
  18.      */
  19.     public function getRole()
  20.     {
  21.         return $this->role;
  22.     }
  23.  
  24.     /**
  25.      * Set language
  26.      *
  27.      * @param Language $language
  28.      * @return Users
  29.      */
  30.     public function setLanguage($language)
  31.     {
  32.         $this->language = $language;
  33.    
  34.         return $this;
  35.     }
  36.  
  37.     /**
  38.      * Get language
  39.      *
  40.      * @return Language
  41.      */
  42.     public function getLanguage()
  43.     {
  44.         return $this->language;
  45.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement