Intraface_Category::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 4
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
ccs 0
cts 5
cp 0
crap 2
1
<?php
2
class Intraface_Category extends Ilib_Category
3
{
4
    public function __construct($kernel, $db, $type, $id = null)
5
    {
6
        $options = array('extra_condition' => array('intranet_id = '.$kernel->intranet->getId()));
7
        parent::__construct($db, $type, $id, $options);
8
    }
9
}
10