Pix::valor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 7
rs 10
cc 1
nc 1
nop 0
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
}