GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Product::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 4
1
<?php
2
3
namespace Magium\Magento\Extractors\Checkout;
4
5
class Product
6
{
7
8
    const EXTRACTOR = 'Checkout\Product';
9
    protected $name;
10
    protected $qty;
11
    protected $price;
12
    protected $subTotal;
13
14
    /**
15
     * Product constructor.
16
     * @param $name
17
     * @param $qty
18
     * @param $price
19
     * @param $subTotal
20
     */
21
    public function __construct($name, $qty, $price, $subTotal)
22
    {
23
        $this->name = $name;
24
        $this->qty = $qty;
25
        $this->price = $price;
26
        $this->subTotal = $subTotal;
27
    }
28
29
    /**
30
     * @return mixed
31
     */
32
    public function getName()
33
    {
34
        return $this->name;
35
    }
36
37
    /**
38
     * @return mixed
39
     */
40
    public function getQty()
41
    {
42
        return $this->qty;
43
    }
44
45
    /**
46
     * @return mixed
47
     */
48
    public function getPrice()
49
    {
50
        return $this->price;
51
    }
52
53
    /**
54
     * @return mixed
55
     */
56
    public function getSubTotal()
57
    {
58
        return $this->subTotal;
59
    }
60
61
62
}