Total Complexity | 6 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class UserMessageText extends Event implements Contract |
||
16 | { |
||
17 | public function getContent($trim = true): string |
||
18 | { |
||
19 | $content = $this->getMessage('Content'); |
||
20 | |||
21 | return $trim ? trim($content) : $content; |
||
22 | } |
||
23 | |||
24 | public function is($pattern, $trim = true): bool |
||
25 | { |
||
26 | return Str::is($pattern, $this->getContent($trim)); |
||
27 | } |
||
28 | |||
29 | public function eq($string, $trim = true): bool |
||
30 | { |
||
31 | return $string === $this->getContent($trim); |
||
32 | } |
||
33 | |||
34 | public function contains($needles, $ignoreCase = false, $trim = true): bool |
||
37 | } |
||
38 | |||
39 | public function getUrl(): ?Url |
||
42 | } |
||
43 | } |
||
44 |