| 1 | <?php |
||
| 10 | class Contains implements Activator |
||
| 11 | { |
||
| 12 | protected $needles; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param array|string $needles |
||
| 16 | */ |
||
| 17 | 5 | public function __construct($needles) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Result of matching activator. |
||
| 28 | * |
||
| 29 | * @param MessageReceived $message |
||
| 30 | * |
||
| 31 | * @return bool |
||
| 32 | */ |
||
| 33 | 3 | public function matches(MessageReceived $message): bool |
|
| 42 | } |
||
| 43 |