| Total Complexity | 5 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait HasLabels |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * List the labels in the user's mailbox. |
||
| 11 | * |
||
| 12 | * @param $userEmail |
||
| 13 | * |
||
| 14 | * @return \Google\Service\Gmail\ListLabelsResponse |
||
| 15 | */ |
||
| 16 | public function labelsList($userEmail) |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Create new label by name. |
||
| 25 | * |
||
| 26 | * @param $userEmail |
||
| 27 | * @param $label |
||
| 28 | * |
||
| 29 | * @return \Google\Service\Gmail\Label |
||
| 30 | */ |
||
| 31 | public function createLabel($userEmail, $label) |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * first or create label in the user's mailbox. |
||
| 40 | * |
||
| 41 | * @param $userEmail |
||
| 42 | * @param $nLabel |
||
| 43 | * @return \Google\Service\Gmail\Label |
||
| 44 | */ |
||
| 45 | public function firstOrCreateLabel($userEmail, $newLabel) |
||
| 58 | } |
||
| 59 | } |