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

RefreshToken::data()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 3
nc 1
nop 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
}