| Total Complexity | 9 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class LaravelGmailClass extends GmailConnection |
||
| 10 | { |
||
| 11 | public function __construct($config, $userId = null) |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @return Message |
||
| 22 | * @throws AuthException |
||
| 23 | */ |
||
| 24 | public function message() |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Returns the Gmail user email |
||
| 35 | * |
||
| 36 | * @return \Google_Service_Gmail_Profile |
||
| 37 | */ |
||
| 38 | public function user() |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Updates / sets the current userId for the service |
||
| 45 | * |
||
| 46 | * @return \Google_Service_Gmail_Profile |
||
| 47 | */ |
||
| 48 | public function setUserId($userId) |
||
| 52 | } |
||
| 53 | |||
| 54 | public function redirect() |
||
| 55 | { |
||
| 56 | return Redirect::to($this->getAuthUrl()); |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Gets the URL to authorize the user |
||
| 61 | * |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | public function getAuthUrl() |
||
| 67 | } |
||
| 68 | |||
| 69 | public function logout() |
||
| 76 |