Beneficiario   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 8
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 50
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRazaoSocial() 0 4 1
A getConta() 0 4 1
A getAgencia() 0 4 1
A getCarteira() 0 4 1
A getCpfCnpj() 0 4 1
A getEndereco() 0 4 1
A getCidadeEstado() 0 4 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
}