Total Complexity | 5 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class GetUserDetails |
||
12 | { |
||
13 | protected $userID; |
||
14 | |||
15 | 8 | public function __construct($userID = null) |
|
16 | { |
||
17 | 8 | $this->userID = $userID ? $userID : Auth::user()->user_id; |
|
18 | 8 | } |
|
19 | |||
20 | 4 | public function getUserData() |
|
26 | } |
||
27 | |||
28 | 4 | public function getUserSettings() |
|
29 | { |
||
30 | 4 | $userSett = UserSettings::where('user_id', $this->userID)->first(); |
|
31 | 4 | Log::debug('User Settings gathered for User ID '.$this->userID.'. Gathered Data - ', $userSett->toArray()); |
|
32 | |||
33 | 4 | return $userSett; |
|
34 | } |
||
35 | |||
36 | // Determine if a username or email address is already in use |
||
37 | 2 | public function checkForDuplicate($type, $value) |
|
40 | } |
||
41 | } |
||
42 |