Passed
Push — master ( cae502...9b9ac5 )
by Antônio
01:37
created

Retornos   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 45
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getBoletos() 0 2 1
A getBanco() 0 2 1
A __construct() 0 2 1
A getRetornoId() 0 2 1
A getDataRecebimento() 0 2 1
1
<?php
2
3
namespace OBRSDK\Entidades;
4
5
/**
6
 * @author Antonio
7
 * @since 19/10/2017
8
 */
9
class Retornos extends \OBRSDK\Entidades\Abstratos\AEntidadePropriedades {
10
11
    ///
12
    /// atributos de resposta
13
    ///
14
    protected $retorno_id;
15
    protected $banco;
16
    protected $data_recebimento;
17
18
    /**
19
     *
20
     * @var \OBRSDK\Entidades\Boletos[]
21
     */
22
    protected $boletos;
23
24
    public function __construct() {
25
        $this->boletos = [new Boletos()];
26
    }
27
28
    public function getRetornoId() {
29
        return $this->retorno_id;
30
    }
31
32
    /**
33
     * Banco gerador do arquivo de retorno
34
     * @return string
35
     */
36
    public function getBanco() {
37
        return $this->banco;
38
    }
39
40
    /**
41
     * Data em que a API recebeu o retorno
42
     * @return string
43
     */
44
    public function getDataRecebimento() {
45
        return $this->data_recebimento;
46
    }
47
48
    /**
49
     * 
50
     * @return \OBRSDK\Entidades\Boletos[]
51
     */
52
    public function getBoletos() {
53
        return $this->boletos;
54
    }
55
56
}
57