| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Method implements MethodInterface, TestOnly |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Get a URL segment for this method. This will be used in URL paths for performing authentication by this method |
||
| 14 | * |
||
| 15 | * @return string |
||
| 16 | */ |
||
| 17 | public function getURLSegment() |
||
| 18 | { |
||
| 19 | return 'basic-math'; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Return the LoginHandler that is used to start and verify login attempts with this method |
||
| 24 | * |
||
| 25 | * @return LoginHandlerInterface |
||
| 26 | */ |
||
| 27 | public function getLoginHandler() |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Return the RegisterHandler that is used to perform registrations with this method |
||
| 34 | * |
||
| 35 | * @return RegisterHandlerInterface |
||
| 36 | */ |
||
| 37 | public function getRegisterHandler() |
||
| 38 | { |
||
| 39 | return new MethodRegisterHandler(); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getDetails() |
||
| 45 | } |
||
| 46 | } |
||
| 47 |