PurchaseParam::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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