TokenRequestAttempt   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
c 2
b 0
f 0
lcom 1
cbo 1
dl 0
loc 19
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getGrantType() 0 4 1
A getInputData() 0 4 1
1
<?php
2
/**
3
 * @author Boris Guéry <[email protected]>
4
 */
5
6
namespace Bgy\OAuth2;
7
8
class TokenRequestAttempt
9
{
10
    private $inputData;
11
12
    public function __construct(InputDataBag $inputData)
13
    {
14
        $this->inputData = $inputData;
15
    }
16
17
    public function getGrantType()
18
    {
19
        return $this->inputData->getGrantType();
20
    }
21
22
    public function getInputData()
23
    {
24
        return $this->inputData;
25
    }
26
}
27