Completed
Push — master ( c0f2e9...bf06e8 )
by Alexey
05:57
created

Param::relations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 9
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 9
loc 9
rs 9.6666
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
/**
4
 * Item name
5
 *
6
 * Info
7
 *
8
 * @author Alexey Krupskiy <[email protected]>
9
 * @link http://inji.ru/
10
 * @copyright 2016 Alexey Krupskiy
11
 * @license https://github.com/injitools/cms-Inji/blob/master/LICENSE
12
 */
13
14
namespace Money\Reward\Trigger;
15
16 View Code Duplication
class Param extends \Model
17
{
18
    public static $cols = [
19
        'reward_trigger_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'trigger'],
20
        'param' => ['type' => 'text'],
21
        'value' => ['type' => 'text'],
22
    ];
23
24
    public static function relations()
25
    {
26
        return [
27
            'trigger' => [
28
                'model' => 'Money\Reward\Trigger',
29
                'col' => 'reward_trigger_id'
30
            ],
31
        ];
32
    }
33
34
}
35