| 1 | <?php |
||
| 11 | class Regex implements Activator |
||
| 12 | { |
||
| 13 | protected $pattern; |
||
| 14 | |||
| 15 | 3 | public function __construct(string $pattern) |
|
| 19 | |||
| 20 | /** |
||
| 21 | * Result of matching activator. |
||
| 22 | * |
||
| 23 | * @param MessageReceived $message |
||
| 24 | * |
||
| 25 | * @return bool |
||
| 26 | */ |
||
| 27 | 2 | public function matches(MessageReceived $message): bool |
|
| 33 | } |
||
| 34 |