Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
26 | class Notification extends ActiveRecord |
||
27 | { |
||
28 | |||
29 | public static function tableName() |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @inheritdoc |
||
36 | */ |
||
37 | public function rules() |
||
38 | { |
||
39 | return [ |
||
40 | [['level', 'notifiable_type', 'subject', 'body'], 'string'], |
||
41 | ['notifiable_id', 'integer'], |
||
42 | ]; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @inheritdoc |
||
47 | */ |
||
48 | public function behaviors() |
||
56 | ]; |
||
57 | } |
||
58 | |||
59 | public function getNotifiable() |
||
62 | } |
||
63 | } |