Completed
Pull Request — develop (#9)
by
unknown
03:41
created

MobileStatus   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createResult() 0 4 1
A getAction() 0 4 1
1
<?php
2
namespace Isign\Login;
3
4
use Isign\QueryInterface;
5
use Isign\TokenizedQueryInterface;
6
use Symfony\Component\Validator\Constraints as Assert;
7
8
/**
9
 * Login status for mobile ID.
10
 */
11
class MobileStatus extends AbstractStatus
12
{
13
    /**
14
     * Result object for this query result
15
     * @return MobileStatusResult
16
     */
17 1
    public function createResult()
18
    {
19 1
        return new MobileStatusResult();
20
    }
21
22
    /**
23
     * API action name, part of full url
24
     * @return string
25
     */
26 1
    public function getAction()
27
    {
28 1
        return 'mobile/login/status';
29
    }
30
}
31