BaseProvider::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Bmatovu\Ussd\Providers;
4
5
use Bmatovu\Ussd\Contracts\ListProvider;
6
use Bmatovu\Ussd\Store;
7
use Bmatovu\Ussd\Traits\Attributes;
8
use Bmatovu\Ussd\Traits\Variables;
9
10
abstract class BaseProvider implements ListProvider
11
{
12
    use Attributes;
0 ignored issues
show
introduced by
The trait Bmatovu\Ussd\Traits\Attributes requires some properties which are not provided by Bmatovu\Ussd\Providers\BaseProvider: $node, $attributes, $nodeValue
Loading history...
13
    use Variables;
0 ignored issues
show
introduced by
The trait Bmatovu\Ussd\Traits\Variables requires some properties which are not provided by Bmatovu\Ussd\Providers\BaseProvider: $node, $childNodes
Loading history...
14
15
    protected Store $store;
16
17
    public function __construct(Store $store)
18
    {
19
        $this->store = $store;
20
    }
21
22
    // abstract public function load(): array;
23
}
24