| 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 | 6 | public function __construct($values, bool $strict = true) |
|
| 31 | |||
| 32 | public function strict(bool $strict): self |
||
| 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 |