Completed
Push — master ( ff6821...2738e7 )
by Vitaly
03:04
created

FieldNavigation   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 3
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: VITALYIEGOROV
5
 * Date: 08.12.15
6
 * Time: 23:11
7
 */
8
namespace samsoncms\api\query;
9
10
use samson\activerecord\dbQuery;
11
use samsoncms\api\CMS;
12
use samsoncms\api\Navigation;
13
14
/**
15
 * Additional field to navigation relation query.
16
 * @package samsoncms\api\query
17
 */
18
class FieldNavigation extends Base
19
{
20
    /**
21
     * FieldNavigation constructor.
22
     * @param array $filteringIDs Collection of entity identifiers for filtering
23
     */
24
    public function __construct($filteringIDs = array())
25
    {
26
        parent::__construct(
27
            new dbQuery(),
28
            '\samsoncms\api\Field',
29
            Navigation::$_primary,
30
            CMS::FIELD_NAVIGATION_RELATION_ENTITY,
31
            $filteringIDs
32
        );
33
    }
34
}
35