1 | <?php |
||
15 | class Activator |
||
16 | { |
||
17 | /** |
||
18 | * Create "Exact" activator. |
||
19 | * |
||
20 | * @param string $value |
||
21 | * |
||
22 | * @param bool $caseSensitive |
||
23 | * |
||
24 | * @return Exact |
||
25 | */ |
||
26 | 1 | public static function exact(string $value, bool $caseSensitive = false): Exact |
|
30 | |||
31 | /** |
||
32 | * @param string|array $needles |
||
33 | * |
||
34 | * @return Contains |
||
35 | */ |
||
36 | 1 | public static function contains($needles): Contains |
|
40 | |||
41 | /** |
||
42 | * Create "Pattern" activator. |
||
43 | * |
||
44 | * @param string $value |
||
45 | * |
||
46 | * @return Pattern |
||
47 | */ |
||
48 | 1 | public static function pattern(string $value): Pattern |
|
52 | |||
53 | /** |
||
54 | * Create "InArray" activator. |
||
55 | * |
||
56 | * @param array|Collection $values |
||
57 | * @param bool $strict |
||
58 | * |
||
59 | * @return InArray |
||
60 | */ |
||
61 | 1 | public static function inArray($values, bool $strict = true): InArray |
|
65 | |||
66 | /** |
||
67 | * Create "WithAttachment" activator. |
||
68 | * |
||
69 | * @param string|null $type |
||
70 | * |
||
71 | * @return WithAttachment |
||
72 | */ |
||
73 | 1 | public static function withAttachment(string $type = null): WithAttachment |
|
77 | |||
78 | /** |
||
79 | * Create "WithPayload" activator. |
||
80 | * |
||
81 | * @param string $value |
||
82 | * |
||
83 | * @return WithPayload |
||
84 | */ |
||
85 | 1 | public static function withPayload(string $value): WithPayload |
|
89 | } |
||
90 |