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

Trigger   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A relations() 0 11 1
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