Total Complexity | 3 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class OutputSpeech |
||
9 | { |
||
10 | const TYPE_PLAINTEXT = 'PlainText'; |
||
11 | const TYPE_SSML = 'SSML'; |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | public $type; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | public $text; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | public $ssml; |
||
27 | |||
28 | /** |
||
29 | * @param string $type |
||
30 | */ |
||
31 | 7 | public function __construct(string $type = self::TYPE_PLAINTEXT) |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param string $test |
||
38 | * |
||
39 | * @return OutputSpeech |
||
40 | */ |
||
41 | 3 | public static function createByText(string $test): self |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * @param string $ssml |
||
52 | * |
||
53 | * @return OutputSpeech |
||
54 | */ |
||
55 | 3 | public static function createBySsml(string $ssml): self |
|
64 |