PurchaseParam   A
last analyzed

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
 */
8
class PurchaseParam
9
{
10
    /**
11
     * Country Id.
12
     *
13
     * @var int
14
     */
15
    public $countryId;
16
17
    /**
18
     * Price Point Id.
19
     *
20
     * @var int
21
     */
22
    public $pricePointId;
23
24
    /**
25
     * Payment Method Id.
26
     *
27
     * @var int
28
     */
29
    public $paymentMethodId;
30
31
    /**
32
     * Create a new Purchase Param.
33
     *
34
     * @param int $countryId
35
     * @param int $pricePointId
36
     * @param int $paymentMethodId
37
     */
38
    public function __construct(int $countryId, int $pricePointId, int $paymentMethodId)
39
    {
40
        $this->countryId = $countryId;
41
        $this->pricePointId = $pricePointId;
42
        $this->paymentMethodId = $paymentMethodId;
43
    }
44
}
45