1 | <?php |
||
7 | class InterfaxMessage |
||
8 | { |
||
9 | protected $files; |
||
10 | protected $stream; |
||
11 | protected $filename; |
||
12 | protected $method; |
||
13 | protected $statusCheck = false; |
||
14 | public $user; |
||
15 | |||
16 | const FILES = 'files'; |
||
17 | const STREAM = 'stream'; |
||
18 | |||
19 | const POLLING_INTERVAL_DEFAULT = 15; |
||
20 | const POLLING_INTERVAL_MINIMUM = 10; |
||
21 | |||
22 | 8 | public function file(string $file) |
|
29 | |||
30 | 3 | public function files(array $files) |
|
37 | |||
38 | 2 | public function stream($stream, string $filename) |
|
46 | |||
47 | 8 | public function checkStatus(bool $shouldCheck = true) |
|
53 | |||
54 | 9 | public function shouldCheckStatus(): bool |
|
58 | |||
59 | /** |
||
60 | * Set a user who can be notified in case the fax fails to send. |
||
61 | * @param mixed $notifiable [description] |
||
62 | * @return InterfaxMessage |
||
63 | */ |
||
64 | 13 | public function user($notifiable) |
|
70 | |||
71 | 6 | public function makeFiles(): array |
|
87 | |||
88 | 2 | public function sleep() : void |
|
93 | } |
||
94 |