Pix   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 14
c 0
b 0
f 0
dl 0
loc 34
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setChave() 0 4 1
A valor() 0 7 1
A setTxid() 0 4 1
A setValor() 0 4 1
1
<?php
2
namespace Itau\API\Pix;
3
4
use Itau\API\TraitEntity;
5
6
class Pix implements \JsonSerializable
7
{
8
    use TraitEntity;
9
10
    private string $chave;
11
    private string $txid;
12
    private Valor $valor;
13
14
15
    public function setChave($chave): self
16
    {
17
        $this->chave = $chave;
18
        return $this;
19
    }
20
21
    public function setTxid($txid): self
22
    {
23
        $this->txid = $txid;
24
        return $this;
25
    }
26
27
    public function valor(): Valor
28
    {
29
        $valor = new Valor();
30
31
        $this->setValor($valor);
32
33
        return $valor;
34
    }
35
36
    public function setValor(Valor $valor): self
37
    {
38
        $this->valor = $valor;
39
        return $this;
40
    }
41
}