1 | <?php |
||
7 | class PushFile extends Request |
||
8 | { |
||
9 | /** |
||
10 | * The type according to the Pushbullet API |
||
11 | * |
||
12 | * @var string $type |
||
13 | */ |
||
14 | |||
15 | protected $type = 'file'; |
||
16 | |||
17 | 2 | public function __construct($file_name, $file_url, $body = null) |
|
24 | |||
25 | /** |
||
26 | * Get the file type based on the file url |
||
27 | * |
||
28 | * @param string $file_url |
||
29 | * |
||
30 | * @return string |
||
31 | */ |
||
32 | |||
33 | 2 | protected function getFileType($file_url) |
|
44 | } |
||
45 |