1 | <?php |
||
5 | class TwilioCallMessage extends TwilioMessage |
||
6 | { |
||
7 | const STATUS_CANCELED = 'canceled'; |
||
8 | const STATUS_COMPLETED = 'completed'; |
||
9 | |||
10 | /** |
||
11 | * @var null|string |
||
12 | */ |
||
13 | public $method = null; |
||
14 | |||
15 | /** |
||
16 | * @var null|string |
||
17 | */ |
||
18 | public $status = null; |
||
19 | |||
20 | /** |
||
21 | * @var null|string |
||
22 | */ |
||
23 | public $fallbackUrl = null; |
||
24 | |||
25 | /** |
||
26 | * @var null|string |
||
27 | */ |
||
28 | public $fallbackMethod = null; |
||
29 | |||
30 | /** |
||
31 | * Set the message url. |
||
32 | * |
||
33 | * @param string $url |
||
34 | * @return $this |
||
35 | */ |
||
36 | public function url($url) |
||
42 | |||
43 | /** |
||
44 | * Set the message url request method. |
||
45 | * |
||
46 | * @param string $method |
||
47 | * @return $this |
||
48 | */ |
||
49 | public function method($method) |
||
55 | |||
56 | /** |
||
57 | * Set the status for the current calls. |
||
58 | * |
||
59 | * @param string $status |
||
60 | * @return $this |
||
61 | */ |
||
62 | public function status($status) |
||
68 | |||
69 | /** |
||
70 | * Set the fallback url. |
||
71 | * |
||
72 | * @param string $fallbackUrl |
||
73 | * @return $this |
||
74 | */ |
||
75 | public function fallbackUrl($fallbackUrl) |
||
81 | |||
82 | /** |
||
83 | * Set the fallback url request method. |
||
84 | * |
||
85 | * @param string $fallbackMethod |
||
86 | * @return $this |
||
87 | */ |
||
88 | public function fallbackMethod($fallbackMethod) |
||
94 | } |
||
95 |