partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

LoginResponse.php (538B)


      1 <?php
      2 
      3 namespace PartKeepr\AuthBundle\Response;
      4 
      5 use PartKeepr\AuthBundle\Entity\UserPreference;
      6 
      7 /**
      8  * Class LoginResponse.
      9  *
     10  * Defines the login response for use with the REST API.
     11  */
     12 class LoginResponse
     13 {
     14     /**
     15      * Holds the session id.
     16      */
     17     public $sessionId;
     18 
     19     /**
     20      * Holds the username.
     21      */
     22     public $username;
     23 
     24     /**
     25      * Defines if the current user is an administrator.
     26      */
     27     public $isAdmin;
     28 
     29     /**
     30      * @var UserPreference[] The user preferences
     31      */
     32     public $userPreferences;
     33 }