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