CreditInstallment   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 13
dl 0
loc 33
rs 10
c 1
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A getAmmount() 0 3 1
A getPaymentDueDate() 0 3 1
A setId() 0 4 1
A setPaymentDueDate() 0 4 1
A setAmount() 0 4 1
1
<?php
2
3
/**
4
 * MÓDULO DE EMISIÓN ELECTRÓNICA F72X
5
 * UBL 2.1
6
 * Version 1.0
7
 *
8
 * Copyright 2021, Jaime Cruz
9
 */
10
11
namespace F72X\Sunat;
12
13
class CreditInstallment
14
{
15
    private $id;
16
    private $amount;
17
    private $paymentDueDate;
18
    // Getters
19
    function getId()
20
    {
21
        return $this->id;
22
    }
23
    function getAmmount()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
24
    {
25
        return $this->amount;
26
    }
27
    function getPaymentDueDate()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
28
    {
29
        return $this->paymentDueDate;
30
    }
31
    // Setters
32
    function setId($id)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
33
    {
34
        $this->id = $id;
35
        return $this;
36
    }
37
    function setAmount($amount)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
38
    {
39
        $this->amount = $amount;
40
        return $this;
41
    }
42
    function setPaymentDueDate($paymentDueDate)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
43
    {
44
        $this->paymentDueDate = $paymentDueDate;
45
        return $this;
46
    }
47
}
48