1 | <?php |
||
11 | class In implements Activator |
||
12 | { |
||
13 | protected $values; |
||
14 | |||
15 | /** |
||
16 | * InArray constructor. |
||
17 | * |
||
18 | * @param array|Collection $values |
||
19 | */ |
||
20 | 5 | protected function __construct($values) |
|
28 | |||
29 | /** |
||
30 | * @param array|Collection $values |
||
31 | * |
||
32 | * @return static |
||
33 | */ |
||
34 | 5 | public static function make($values) |
|
38 | |||
39 | /** |
||
40 | * Result of matching activator. |
||
41 | * |
||
42 | * @param MessageReceived $message |
||
43 | * |
||
44 | * @return bool |
||
45 | */ |
||
46 | 4 | public function matches(MessageReceived $message): bool |
|
56 | } |
||
57 |