NullAuthentication::authRequestData()   A
last analyzed

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
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace kalanis\Restful\Security\Process;
4
5
6
use kalanis\Restful\Http\IInput;
7
8
9
/**
10
 * NullAuthentication for non-secured API requests
11
 * @package kalanis\Restful\Security\Process
12
 */
13
class NullAuthentication extends AuthenticationProcess
14
{
15
    /**
16
     * Authenticate request data
17
     */
18
    protected function authRequestData(IInput $input): bool
19
    {
20
        return true;
21
    }
22
23
    /**
24
     * Authenticate request time
25
     */
26
    protected function authRequestTimeout(IInput $input): bool
27
    {
28
        return true;
29
    }
30
}
31