AccessToken::getExpireIn()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * To change this license header, choose License Headers in Project Properties.
5
 * To change this template file, choose Tools | Templates
6
 * and open the template in the editor.
7
 */
8
9
namespace OBRSDK\Entidades;
10
11
/**
12
 * Description of AccessToken
13
 *
14
 * @author Antonio
15
 */
16
class AccessToken extends Abstratos\AEntidadePropriedades {
17
18
    protected $access_token;
19
    protected $expires_in;
20
    protected $scope;
21
    protected $refresh_token;
22
    protected $data_token;
23
24
    /**
25
     * Retorna o access_token
26
     * @return string
27
     */
28
    public function getAccessToken() {
29
        return $this->access_token;
30
    }
31
32
    /**
33
     * Retorna em segundos quanto tempo de validade tem esse token
34
     * @return int
35
     */
36
    public function getExpireIn() {
37
        return $this->expires_in;
38
    }
39
40
    /**
41
     * Retorna o escopo de permissão desse access_token
42
     * 
43
     * @return string
44
     */
45
    public function getEscopo() {
46
        return $this->scope;
47
    }
48
49
    /**
50
     * Retorna o refresh_token desse access_token para gerar um novo 
51
     * access_token com as mesmas permissões desde
52
     * 
53
     * @return string
54
     */
55
    public function getRefreshToken() {
56
        return $this->refresh_token;
57
    }
58
59
    /**
60
     * Retorna o unixtimestamp de quando esse token foi criado
61
     * 
62
     * @return int
63
     */
64
    public function getDataToken() {
65
        return $this->data_token;
66
    }
67
68
}
69