| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function addLabel($labels) |
||
| 27 | { |
||
| 28 | if (is_string($labels)) { |
||
| 29 | $labels = [$labels]; |
||
| 30 | } |
||
| 31 | |||
| 32 | $this->messageRequest->setAddLabelIds($labels); |
||
| 33 | |||
| 34 | try { |
||
| 35 | return $this->modify(); |
||
| 36 | } catch (\Exception $e) { |
||
| 37 | throw new \Exception("Couldn't add labels: {$e->getMessage()}"); |
||
| 38 | } |
||
| 76 |