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.
Completed
Push — master ( bc1665...cec0e4 )
by Sebastian
28:57
created

OrderLine::description()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace App;
4
5
class OrderLine
6
{
7
    /** @var int */
8
    private $id;
9
10
    /** @var string */
11
    private $description;
12
13
    /** @var int */
14
    private $unitPrice;
15
16
    /** @var int */
17
    private $quantity;
18
19
    public function __construct(int $id, string $description, int $unitPrice, int $quantity) {
20
        $this->id = $id;
21
        $this->description = $description;
22
        $this->unitPrice = $unitPrice;
23
        $this->quantity = $quantity;
24
    }
25
26
    public function id(): int
27
    {
28
        return $this->id;
29
    }
30
31
    public function description(): string
32
    {
33
        return $this->description;
34
    }
35
36
    public function unitPrice(): int
37
    {
38
        return $this->unitPrice;
39
    }
40
41
    public function quantity(): int
42
    {
43
        return $this->quantity;
44
    }
45
46
    public function totalPrice(): int
47
    {
48
        return $this->unitPrice * $this->quantity;
49
    }
50
}
51