Completed
Push — master ( 269a91...e17aff )
by Robbie
13s queued 10s
created

Method::getAuthenticator()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
namespace SilverStripe\MFA\BasicMath;
3
4
use SilverStripe\MFA\Method\Handler\RegisterHandlerInterface;
5
use SilverStripe\MFA\Method\Handler\LoginHandlerInterface;
6
use SilverStripe\MFA\Method\MethodInterface;
7
use SilverStripe\MFA\MethodRegisterHandler;
8
9
class Method implements MethodInterface
10
{
11
    /**
12
     * Return the LoginHandler that is used to start and verify login attempts with this method
13
     *
14
     * @return LoginHandlerInterface
15
     */
16
    public function getLoginHandler()
17
    {
18
        return new MethodLoginHandler();
19
    }
20
21
    /**
22
     * Return the RegisterHandler that is used to perform registrations with this method
23
     *
24
     * @return RegisterHandlerInterface
25
     */
26
    public function getRegisterHandler()
27
    {
28
        return new MethodRegisterHandler();
29
    }
30
}
31