Completed
Push — master ( e6cd79...15515b )
by Mike
02:12
created

RefreshToken   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A data() 0 4 1
1
<?php
2
3
namespace SugarAPI\SDK\EntryPoint\POST;
4
5
6
use SugarAPI\SDK\EntryPoint\Abstracts\POST\JSONEntryPoint as POSTEntryPoint;
7
8
class RefreshToken extends POSTEntryPoint {
9
10
    protected $_REQUIRED_DATA = array(
11
        'grant_type',
12
        'refresh_token',
13
        'client_id',
14
        'client_secret'
15
    );
16
17
    public function data(array $data){
18
        $data['grant_type'] = 'refresh_token';
19
        return parent::data($data);
20
    }
21
22
}