| 1 | <?php |
||
| 5 | abstract class TotalVoiceMessage |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The message content. |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | public $content; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Aguardar uma resposta do destinatário. |
||
| 16 | * |
||
| 17 | * @var bool |
||
| 18 | */ |
||
| 19 | public $provide_feedback = false; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Create a message object. |
||
| 23 | * |
||
| 24 | * @param string $content |
||
| 25 | * @return static |
||
| 26 | */ |
||
| 27 | 7 | public static function create($content = '') |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Create a new message instance. |
||
| 34 | * |
||
| 35 | * @param string $content |
||
| 36 | */ |
||
| 37 | 19 | public function __construct($content = '') |
|
| 41 | |||
| 42 | /** |
||
| 43 | * Set the message content. |
||
| 44 | * |
||
| 45 | * @param string $content |
||
| 46 | * @return $this |
||
| 47 | */ |
||
| 48 | 3 | public function content($content) |
|
| 54 | |||
| 55 | /** |
||
| 56 | * Set the provide feedback option. |
||
| 57 | * |
||
| 58 | * @param bool $provideFeedback |
||
| 59 | * @return $this |
||
| 60 | */ |
||
| 61 | 12 | public function provideFeedback($provideFeedback) |
|
| 67 | |||
| 68 | /** |
||
| 69 | * Get the provide feedback option. |
||
| 70 | * |
||
| 71 | * @return null|bool |
||
| 72 | */ |
||
| 73 | 3 | public function getProvideFeedback() |
|
| 77 | } |
||
| 78 |