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

TotalVoiceSmsMessage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A multipart() 0 6 1
A scheledule() 0 6 1
1
<?php
2
3
namespace NotificationChannels\TotalVoice;
4
5
class TotalVoiceSmsMessage extends TotalVoiceMessage
6
{
7
    /**
8
     * @var bool
9
     */
10
    public $multi_part = false;
11
12
    /**
13
     * @var null|\DateTime
14
     */
15
    public $scheduled_datetime = null;
16
17
    /**
18
     * Set the multi-part message option.
19
     *
20
     * @param bool $multi_part
21
     * @return $this
22
     */
23 2
    public function multipart($multi_part)
24
    {
25 2
        $this->multi_part = $multi_part;
26
27 2
        return $this;
28
    }
29
30
    /**
31
     * Set the scheleduled datetime message option in Datetime Format.
32
     *
33
     * @param \DateTime $scheduled_datetime
34
     * @return $this
35
     */
36 2
    public function scheledule(\DateTime $scheduled_datetime)
37
    {
38 2
        $this->scheduled_datetime = $scheduled_datetime;
39
40 2
        return $this;
41
    }
42
}
43