| 1 | <?php |
||
| 11 | class Attachment implements Activator |
||
| 12 | { |
||
| 13 | protected $type; |
||
| 14 | |||
| 15 | 11 | public function __construct(string $type = null) |
|
| 19 | |||
| 20 | public function file(): self |
||
| 26 | |||
| 27 | public function image(): self |
||
| 33 | |||
| 34 | public function audio(): self |
||
| 40 | |||
| 41 | public function video(): self |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Result of matching activator. |
||
| 50 | * |
||
| 51 | * @param MessageReceived $message |
||
| 52 | * |
||
| 53 | * @return bool |
||
| 54 | */ |
||
| 55 | 10 | public function matches(MessageReceived $message): bool |
|
| 63 | } |
||
| 64 |