lib/private/Notification/Notification.php 1 location
|
@@ 305-311 (lines=7) @@
|
| 302 |
|
* @throws \InvalidArgumentException if the message are invalid |
| 303 |
|
* @since 8.2.0 |
| 304 |
|
*/ |
| 305 |
|
public function setParsedMessage($message) { |
| 306 |
|
if (!is_string($message) || $message === '') { |
| 307 |
|
throw new \InvalidArgumentException('The given parsed message is invalid'); |
| 308 |
|
} |
| 309 |
|
$this->messageParsed = $message; |
| 310 |
|
return $this; |
| 311 |
|
} |
| 312 |
|
|
| 313 |
|
/** |
| 314 |
|
* @return string |
lib/private/Comments/Comment.php 1 location
|
@@ 222-228 (lines=7) @@
|
| 219 |
|
* @return IComment |
| 220 |
|
* @since 9.0.0 |
| 221 |
|
*/ |
| 222 |
|
public function setVerb($verb) { |
| 223 |
|
if(!is_string($verb) || !trim($verb)) { |
| 224 |
|
throw new \InvalidArgumentException('Non-empty String expected.'); |
| 225 |
|
} |
| 226 |
|
$this->data['verb'] = trim($verb); |
| 227 |
|
return $this; |
| 228 |
|
} |
| 229 |
|
|
| 230 |
|
/** |
| 231 |
|
* returns the actor type |