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

TotalVoiceTtsMessage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 2
cbo 2
dl 0
loc 40
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A speed() 0 6 1
A voiceType() 0 6 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