Func::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1
1
<?php
2
namespace nstdio\svg\filter;
3
4
use nstdio\svg\ElementInterface;
5
6
/**
7
 * Class Func
8
 *
9
 * @property string type
10
 * @package nstdio\svg\filter
11
 * @author  Edgar Asatryan <[email protected]>
12
 */
13
abstract class Func extends BaseFilter
14
{
15 12
    public function __construct(ElementInterface $parent, $type)
16
    {
17 12
        parent::__construct($parent);
18 12
        $this->type = $type;
19 12
    }
20
21
}