Drink::getIced()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 2 Features 0
Metric Value
c 2
b 2
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
4
class Drink
5
{
6
    protected $orderNumber,
7
        $type,
8
        $iced;
9
10
    public function __construct($orderNumber, $type, $iced)
11
    {
12
        $this->orderNumber = $orderNumber;
13
        $this->type = $type;
14
        $this->iced = $iced;
15
    }
16
17
    public function getType()
18
    {
19
        return $this->type;
20
    }
21
22
    public function getIced()
23
    {
24
        return $this->iced;
25
    }
26
27
    public function getOrderNumber()
28
    {
29
        return $this->orderNumber;
30
    }
31
32
    public function __sleep()
33
    {
34
        return ['orderNumber', 'type', 'iced'];
35
    }
36
}
37