Completed
Push — master ( 646730...43a697 )
by Vitaly
05:45
created

Material::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
rs 9.4286
cc 1
eloc 5
nc 1
nop 2
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
12
/**
13
 * Material with additional fields query.
14
 * @package samsoncms\api
15
 */
16
class Material extends Base
17
{
18
    /**
19
     * MaterialField constructor
20
     * @param array $filteringIDs Collection of entity identifiers for filtering
21
     * @param string $identifier Entity identifier
22
     */
23
    public function __construct($filteringIDs = array(), $identifier = \samsoncms\api\Material::ENTITY)
24
    {
25
        parent::__construct(
26
            new dbQuery(),
27
            $identifier,
28
            $filteringIDs
29
        );
30
    }
31
}
32