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

ContactMeta::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
ccs 4
cts 4
cp 1
cc 1
nc 1
nop 1
crap 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