Completed
Push — master ( 0cdd35...cbf418 )
by Rafael
03:53 queued 02:54
created

TotalVoiceTtsMessage::speed()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace NotificationChannels\TotalVoice;
4
5
class TotalVoiceTtsMessage extends TotalVoiceMessage
6
{
7
    use TotalVoiceMessageOptions;
8
9
    /**
10
     * @var int
11
     */
12
    public $speed = 0;
13
14
    /**
15
     * @var string
16
     */
17
    public $voice_type = 'br-Vitoria';
18
19
    /**
20
     * Set the speech speed option. (-10 ~ 10, 0=default).
21
     *
22
     * @param int $speed
23
     * @return $this
24
     */
25 2
    public function speed($speed)
26
    {
27 2
        $this->speed = $speed;
28
29 2
        return $this;
30
    }
31
32
    /**
33
     * Set the voice type of the message. (br-Vitoria default).
34
     *
35
     * @param string $voice_type
36
     * @return $this
37
     */
38 2
    public function voiceType($voice_type)
39
    {
40 2
        $this->voice_type = $voice_type;
41
42 2
        return $this;
43
    }
44
}
45