PriceSummary   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 4
eloc 5
c 3
b 0
f 0
dl 0
loc 20
ccs 8
cts 8
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A performanceId() 0 3 1
A enabled() 0 3 1
A zoneId() 0 3 1
A price() 0 3 1
1
<?php
2
3
namespace Clubdeuce\Tessitura\Resources;
4
5
use Clubdeuce\Tessitura\Base\Resource;
6
7
class PriceSummary extends Resource
8
{
9 1
    public function price(): float
10
    {
11 1
        return floatval($this->extraArgs['Price']);
12
    }
13
14 1
    public function zoneId(): int
15
    {
16 1
        return intval($this->extraArgs['ZoneId']);
17
    }
18
19 1
    public function enabled(): bool
20
    {
21 1
        return (bool)$this->extraArgs['Enabled'];
22
    }
23
24 1
    public function performanceId(): int
25
    {
26 1
        return intval($this->extraArgs['PerformanceId']);
27
    }
28
}
29