BaseBuilder::toArray()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace linkprofit\Tracker\builder;
4
5
/**
6
 * Class BaseBuilder
7
 *
8
 * @package linkprofit\Tracker\builder
9
 */
10
abstract class BaseBuilder implements BuilderInterface
11
{
12
    /**
13
     * @var array
14
     */
15
    public $params = [];
16
17
    /**
18
     * @return array
19
     */
20 20
    public function toArray()
21
    {
22 20
        return $this->params;
23
    }
24
}
25