Burger   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 18
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPrice() 0 4 1
A getDescription() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace codenixsv\Patterns\Structural\Decorator;
5
6
/**
7
 * Class Burger
8
 * @package codenixsv\Patterns\Structural\Decorator
9
 */
10
class Burger implements BurgerInterface
11
{
12
    /**
13
     * @return int
14
     */
15 4
    public function getPrice(): int
16
    {
17 4
        return 5;
18
    }
19
20
    /**
21
     * @return string
22
     */
23 4
    public function getDescription(): string
24
    {
25 4
        return 'Burger';
26
    }
27
}
28