Drink   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 3
Bugs 3 Features 0
Metric Value
wmc 5
c 3
b 3
f 0
lcom 0
cbo 0
dl 0
loc 33
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getType() 0 4 1
A getIced() 0 4 1
A getOrderNumber() 0 4 1
A __sleep() 0 4 1
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