Completed
Push — development ( a928ed...ed05a0 )
by Claudio
02:29
created

PurchaseParam   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 37
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace App\Models;
4
5
/**
6
 * Class PurchaseParam
7
 * @package App\Models
8
 */
9
class PurchaseParam
10
{
11
    /**
12
     * Country Id
13
     *
14
     * @var int
15
     */
16
    public $countryId;
17
18
    /**
19
     * Price Point Id
20
     *
21
     * @var int
22
     */
23
    public $pricePointId;
24
25
    /**
26
     * Payment Method Id
27
     *
28
     * @var int
29
     */
30
    public $paymentMethodId;
31
32
    /**
33
     * Create a new Purchase Param
34
     *
35
     * @param int $countryId
36
     * @param int $pricePointId
37
     * @param int $paymentMethodId [
38
     */
39
    public function __construct(int $countryId, int $pricePointId, int $paymentMethodId)
40
    {
41
        $this->countryId = $countryId;
42
        $this->pricePointId = $pricePointId;
43
        $this->paymentMethodId = $paymentMethodId;
44
    }
45
}
46