| 1 | <?php |
||
| 9 | class Contains implements Activator |
||
| 10 | { |
||
| 11 | private $needles; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param array|string $needles |
||
| 15 | */ |
||
| 16 | 4 | public function __construct($needles) |
|
| 20 | |||
| 21 | /** |
||
| 22 | * Result of matching activator. |
||
| 23 | * |
||
| 24 | * @param MessageReceived $message |
||
| 25 | * |
||
| 26 | * @return bool |
||
| 27 | */ |
||
| 28 | 3 | public function matches(MessageReceived $message): bool |
|
| 37 | } |
||
| 38 |