lib/private/Activity/Event.php 1 location
|
@@ 238-244 (lines=7) @@
|
| 235 |
|
* @throws \InvalidArgumentException if the subject is invalid |
| 236 |
|
* @since 11.0.0 |
| 237 |
|
*/ |
| 238 |
|
public function setParsedSubject($subject) { |
| 239 |
|
if (!is_string($subject) || $subject === '') { |
| 240 |
|
throw new \InvalidArgumentException('The given parsed subject is invalid'); |
| 241 |
|
} |
| 242 |
|
$this->subjectParsed = $subject; |
| 243 |
|
return $this; |
| 244 |
|
} |
| 245 |
|
|
| 246 |
|
/** |
| 247 |
|
* @return string |
lib/private/Notification/Notification.php 1 location
|
@@ 271-277 (lines=7) @@
|
| 268 |
|
* @throws \InvalidArgumentException if the subject is invalid |
| 269 |
|
* @since 8.2.0 |
| 270 |
|
*/ |
| 271 |
|
public function setParsedSubject($subject) { |
| 272 |
|
if (!is_string($subject) || $subject === '') { |
| 273 |
|
throw new \InvalidArgumentException('The given parsed subject is invalid'); |
| 274 |
|
} |
| 275 |
|
$this->subjectParsed = $subject; |
| 276 |
|
return $this; |
| 277 |
|
} |
| 278 |
|
|
| 279 |
|
/** |
| 280 |
|
* @return string |