LogAgent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 20
ccs 12
cts 12
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A sendContentSms() 0 5 1
A sendTemplateSms() 0 5 1
A sendVoiceCode() 0 5 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