LogAgent::sendContentSms()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Toplan\PhpSms;
4
5
/**
6
 * Class LogAgent
7
 */
8
class LogAgent extends Agent implements TemplateSms, ContentSms, VoiceCode
9
{
10 18
    public function sendContentSms($to, $content)
11
    {
12 18
        $this->result(Agent::SUCCESS, true);
13 18
        $this->result(Agent::INFO, 'send content sms success');
14 18
    }
15
16 3
    public function sendTemplateSms($to, $tempId, array $data)
17
    {
18 3
        $this->result(Agent::SUCCESS, true);
19 3
        $this->result(Agent::INFO, 'send template sms success');
20 3
    }
21
22 3
    public function sendVoiceCode($to, $code)
23
    {
24 3
        $this->result(Agent::SUCCESS, true);
25 3
        $this->result(Agent::INFO, 'send voice verify success');
26 3
    }
27
}
28