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

TotalVoiceAudioMessage::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
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 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