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

FieldNavigation::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 10
rs 9.4286
cc 1
eloc 7
nc 1
nop 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