Passed
Pull Request — master (#8)
by
unknown
01:40
created

Method   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getLoginHandler() 0 3 1
A getRegisterHandler() 0 3 1
1
<?php
2
namespace SilverStripe\MFA\Tests\Stub\BasicMath;
3
4
use SilverStripe\MFA\Method\Handler\LoginHandlerInterface;
5
use SilverStripe\MFA\Method\Handler\RegisterHandlerInterface;
6
use SilverStripe\MFA\Method\MethodInterface;
7
8
class Method implements MethodInterface
9
{
10
    /**
11
     * Return the LoginHandler that is used to start and verify login attempts with this method
12
     *
13
     * @return LoginHandlerInterface
14
     */
15
    public function getLoginHandler()
16
    {
17
        return new MethodLoginHandler();
18
    }
19
20
    /**
21
     * Return the RegisterHandler that is used to perform registrations with this method
22
     *
23
     * @return RegisterHandlerInterface
24
     */
25
    public function getRegisterHandler()
26
    {
27
        return new MethodRegisterHandler();
28
    }
29
}
30