Conditions | 2 |
Paths | 2 |
Total Lines | 23 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function setCobranca($dados) |
||
38 | { |
||
39 | try { |
||
40 | |||
41 | $this->cobranca = array( |
||
42 | 'customer' => '', |
||
43 | 'billingType' => '', |
||
44 | 'value' => '', |
||
45 | 'dueDate' => '', |
||
46 | 'description' => '', |
||
47 | 'externalReference' => '', |
||
48 | 'installmentCount' => '', |
||
49 | 'installmentValue' => '', |
||
50 | 'discount' => '', |
||
51 | 'interest' => '', |
||
52 | 'fine' => '', |
||
53 | ); |
||
54 | |||
55 | $this->cobranca = array_merge($this->cobranca, $dados); |
||
56 | return $this->cobranca; |
||
57 | |||
58 | } catch (Exception $e) { |
||
59 | return 'Erro ao definir o cliente. - ' . $e->getMessage(); |
||
|
|||
60 | } |
||
63 |