| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Payload implements Activator |
||
| 11 | { |
||
| 12 | protected $value; |
||
| 13 | |||
| 14 | 2 | protected function __construct(string $value) |
|
| 15 | { |
||
| 16 | 2 | $this->value = $value; |
|
| 17 | 2 | } |
|
| 18 | |||
| 19 | 2 | public static function make(string $value) |
|
| 20 | { |
||
| 21 | 2 | return new static($value); |
|
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Result of matching activator. |
||
| 26 | * |
||
| 27 | * @param MessageReceived $message |
||
| 28 | * |
||
| 29 | * @return bool |
||
| 30 | */ |
||
| 31 | 2 | public function matches(MessageReceived $message): bool |
|
| 34 | } |
||
| 35 | } |
||
| 36 |