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

Material   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 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
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