Total Complexity | 6 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 93.75% |
Changes | 0 |
1 | <?php |
||
11 | class Exact implements Activator |
||
12 | { |
||
13 | protected $value; |
||
14 | protected $caseSensitive; |
||
15 | |||
16 | 6 | protected function __construct(string $value) |
|
17 | { |
||
18 | 6 | $this->value = $value; |
|
19 | 6 | } |
|
20 | |||
21 | 6 | public static function make(string $value) |
|
22 | { |
||
23 | 6 | return new static($value); |
|
24 | } |
||
25 | |||
26 | 1 | public function caseSensitive(): self |
|
31 | } |
||
32 | |||
33 | /** |
||
34 | * Result of matching activator. |
||
35 | * |
||
36 | * @param MessageReceived $message |
||
37 | * |
||
38 | * @return bool |
||
39 | */ |
||
40 | 6 | public function matches(MessageReceived $message): bool |
|
54 | } |
||
55 | } |
||
56 |