1 | <?php |
||
5 | trait TotalVoiceMessageOptions |
||
6 | { |
||
7 | /** |
||
8 | * @var null|string |
||
9 | */ |
||
10 | public $fake_number = null; |
||
11 | |||
12 | /** |
||
13 | * @var bool |
||
14 | */ |
||
15 | public $record_audio = false; |
||
16 | |||
17 | /** |
||
18 | * @var bool |
||
19 | */ |
||
20 | public $detect_callbox = false; |
||
21 | |||
22 | /** |
||
23 | * Define o número de telefone que aparecerá no identificador |
||
24 | * de quem receber a chamada, formato DDD + Número exemplo: 4832830151. |
||
25 | * |
||
26 | * @param $fake_number |
||
27 | * @return $this |
||
28 | */ |
||
29 | 2 | public function fakeNumber($fake_number) |
|
35 | |||
36 | /** |
||
37 | * Define se vai gravar a chamada. |
||
38 | * |
||
39 | * @param bool $record_audio |
||
40 | * @return $this |
||
41 | */ |
||
42 | 2 | public function recordAudio($record_audio) |
|
48 | |||
49 | /** |
||
50 | * Define se vai desconectar em caso de cair na caixa postal |
||
51 | * (vivo, claro, tim e oi). |
||
52 | * |
||
53 | * @param bool $detect_callbox |
||
54 | * @return $this |
||
55 | */ |
||
56 | 2 | public function detectCallbox($detect_callbox) |
|
62 | } |
||
63 |