Beneficiario::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

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 2
nc 1
nop 1
1
<?php
2
namespace CbCaio\Boletos\Models\Beneficiario\Base;
3
use  CbCaio\Boletos\Models\Beneficiario\Contracts\BeneficiarioInterface;
0 ignored issues
show
Coding Style introduced by
There must be a single space after the USE keyword
Loading history...
4
5
abstract class Beneficiario implements BeneficiarioInterface
6
{
7
    /**
8
     * All of the user's attributes.
9
     *
10
     * @var array
11
     */
12
    protected $attributes;
13
14
    public function __construct(array $attributes)
15
    {
16
        $this->attributes = $attributes;
17
    }
18
19
    public function getRazaoSocial()
20
    {
21
        return $this->attributes['razao_social'];
22
    }
23
24
    public function getConta()
25
    {
26
        return $this->attributes['conta'];
27
    }
28
29
    public function getAgencia()
30
    {
31
        return $this->attributes['agencia'];
32
    }
33
34
    public function getCarteira()
35
    {
36
        return $this->attributes['carteira'];
37
    }
38
39
    public function getCpfCnpj()
40
    {
41
        return $this->attributes['cpf_cnpj'];
42
    }
43
44
    public function getEndereco()
45
    {
46
        return $this->attributes['endereco'];
47
    }
48
49
    public function getCidadeEstado()
50
    {
51
        return $this->attributes['cidade_estado'];
52
    }
53
54
}