Passed
Push — master ( 8c1a6c...28368a )
by Yunus Emre
03:25
created

ContactMeta   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 11
rs 10
ccs 4
cts 4
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace TarfinLabs\Parasut\Repositories\Meta;
4
5
class ContactMeta extends BaseMeta
6
{
7
    public ?float $payableTotal;
8
    public ?float $collectibleTotal;
9
10 1
    public function __construct(array $meta)
11
    {
12 1
        parent::__construct($meta);
13
14 1
        $this->payableTotal = $meta['payable_total'] ?? null;
15 1
        $this->collectibleTotal = $meta['collectible_total'] ?? null;
16 1
    }
17
}
18