1 | <?php |
||
11 | class Attachment implements Activator |
||
12 | { |
||
13 | protected $type; |
||
14 | |||
15 | 10 | protected function __construct(string $type = null) |
|
19 | |||
20 | 10 | public static function make(string $type = null) |
|
24 | |||
25 | public function file(): self |
||
31 | |||
32 | public function image(): self |
||
38 | |||
39 | public function audio(): self |
||
45 | |||
46 | public function video(): self |
||
52 | |||
53 | /** |
||
54 | * Result of matching activator. |
||
55 | * |
||
56 | * @param MessageReceived $message |
||
57 | * |
||
58 | * @return bool |
||
59 | */ |
||
60 | 10 | public function matches(MessageReceived $message): bool |
|
68 | } |
||
69 |