Completed
Push — master ( 9101e8...625686 )
by Dmitry
13:37
created

PriceQuery::withFormulaLines()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace hipanel\modules\finance\models\query;
4
5
use hipanel\modules\finance\models\Plan;
6
use hiqdev\hiart\ActiveQuery;
7
8
class PriceQuery extends \hiqdev\hiart\ActiveQuery
9
{
10
    public function withFormulaLines(): self
11
    {
12
        return $this->addSelect('formula_lines');
13
    }
14
15
    public function withMainObject(): self
16
    {
17
        return $this->addSelect('main_object_id')
18
            ->joinWith('object')
19
            ->limit(-1);
20
    }
21
}
22