| 1 | <?php |
||
| 11 | class InArray implements Activator |
||
| 12 | { |
||
| 13 | protected $values; |
||
| 14 | protected $strict; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * InArray constructor. |
||
| 18 | * |
||
| 19 | * @param array|Collection $values |
||
| 20 | * @param bool $strict |
||
| 21 | */ |
||
| 22 | 5 | public function __construct($values, bool $strict = true) |
|
| 27 | |||
| 28 | public function strict(bool $strict): self |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Result of matching activator. |
||
| 37 | * |
||
| 38 | * @param MessageReceived $message |
||
| 39 | * |
||
| 40 | * @return bool |
||
| 41 | */ |
||
| 42 | 4 | public function matches(MessageReceived $message): bool |
|
| 52 | } |
||
| 53 |