AuthenticationOptionsInterface
last analyzed

Size/Duplication

Total Lines 77
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 77
c 0
b 0
f 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
setLoginFormTimeout() 0 1 ?
getLoginFormTimeout() 0 1 ?
setAuthIdentityFields() 0 1 ?
getAuthIdentityFields() 0 1 ?
setUseLoginFormCaptcha() 0 1 ?
getUseLoginFormCaptcha() 0 1 ?
setUseLoginFormCsrf() 0 1 ?
getUseLoginFormCsrf() 0 1 ?
setFormCaptchaOptions() 0 1 ?
getFormCaptchaOptions() 0 1 ?
1
<?php
2
3
namespace LmcUser\Options;
4
5
interface AuthenticationOptionsInterface extends PasswordOptionsInterface
6
{
7
8
    /**
9
     * set login form timeout in seconds
10
     *
11
     * @param int $loginFormTimeout
12
     */
13
    public function setLoginFormTimeout($loginFormTimeout);
14
15
    /**
16
     * set login form timeout in seconds
17
     *
18
     * @param int $loginFormTimeout
0 ignored issues
show
Bug introduced by
There is no parameter named $loginFormTimeout. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
19
     */
20
    public function getLoginFormTimeout();
21
22
    /**
23
     * set auth identity fields
24
     *
25
     * @param  array $authIdentityFields
26
     * @return ModuleOptions
27
     */
28
    public function setAuthIdentityFields($authIdentityFields);
29
30
    /**
31
     * get auth identity fields
32
     *
33
     * @return array
34
     */
35
    public function getAuthIdentityFields();
36
37
    /**
38
     * set use a captcha in login form
39
     *
40
     * @param bool $useLoginFormCaptcha
41
     * @return ModuleOptions
42
     */
43
    public function setUseLoginFormCaptcha($useLoginFormCaptcha);
44
45
    /**
46
     * get use a captcha in login form
47
     *
48
     * @return bool
49
     */
50
    public function getUseLoginFormCaptcha();
51
52
    /**
53
     * set use a csrf in login form
54
     *
55
     * @param  bool $useLoginFormCsrf
56
     * @return ModuleOptions
57
     */
58
    public function setUseLoginFormCsrf($useLoginFormCsrf);
59
60
    /**
61
     * get use a csrf in login form
62
     *
63
     * @return bool
64
     */
65
    public function getUseLoginFormCsrf();
66
67
    /**
68
     * set form CAPTCHA options
69
     *
70
     * @param  array $formCaptchaOptions
71
     * @return ModuleOptions
72
     */
73
    public function setFormCaptchaOptions($formCaptchaOptions);
74
75
    /**
76
     * get form CAPTCHA options
77
     *
78
     * @return array
79
     */
80
    public function getFormCaptchaOptions();
81
}
82