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

TotalVoiceAudioMessage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
A __construct() 0 4 1
1
<?php
2
3
namespace NotificationChannels\TotalVoice;
4
5
class TotalVoiceAudioMessage extends TotalVoiceMessage
6
{
7
    use TotalVoiceMessageOptions;
8
9
    /**
10
     * Create a message object.
11
     *
12
     * @param string $audio_url
13
     * @return static
14
     */
15 1
    public static function create($audio_url = '')
16
    {
17 1
        return new static($audio_url);
18
    }
19
20
    /**
21
     * Create a new message instance.
22
     *
23
     * @param  string $audio_url
24
     */
25 9
    public function __construct($audio_url = '')
26
    {
27 9
        $this->content = $audio_url;
28 9
    }
29
}
30