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

Trigger::relations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

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