GetParameterAuthenticationHandler   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 20
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
A getType() 0 4 1
1
<?php
2
3
namespace Victoire\Bundle\APIBusinessEntityBundle\Authentication;
4
5
use Victoire\Bundle\APIBusinessEntityBundle\Authentication\Interfaces\APIAuthenticationMethodInterface;
6
7
class GetParameterAuthenticationHandler implements APIAuthenticationMethodInterface
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
8
{
9
    const TYPE = 'get_parameter';
10
11
    /**
0 ignored issues
show
introduced by
Doc comment for parameter "$curl" missing
Loading history...
introduced by
Doc comment for parameter "$getMethod" missing
Loading history...
introduced by
Doc comment for parameter "$token" missing
Loading history...
12
     * Concats the get path with the token.
13
     */
14
    public function handle($curl, &$getMethod, &$token)
15
    {
16
        $getMethod .= $token;
17
    }
18
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public static function getType()
23
    {
24
        return self::TYPE;
25
    }
26
}
27