| 1 | <?php |
||
| 11 | class Contains implements Activator |
||
| 12 | { |
||
| 13 | protected $needles; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param array|string $needles |
||
| 17 | */ |
||
| 18 | 4 | protected function __construct($needles) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @param array|string $needles |
||
| 29 | * |
||
| 30 | * @return static |
||
| 31 | */ |
||
| 32 | 4 | public static function make($needles) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Result of matching activator. |
||
| 39 | * |
||
| 40 | * @param MessageReceived $message |
||
| 41 | * |
||
| 42 | * @return bool |
||
| 43 | */ |
||
| 44 | 3 | public function matches(MessageReceived $message): bool |
|
| 53 | } |
||
| 54 |