| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | class Notification extends ActiveRecord |
||
| 27 | { |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @inheritdoc |
||
| 31 | */ |
||
| 32 | public function rules() |
||
| 33 | { |
||
| 34 | return [ |
||
| 35 | [['level', 'notifiable_type', 'subject', 'body'], 'string'], |
||
| 36 | ['notifiable_id', 'integer'], |
||
| 37 | ]; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @inheritdoc |
||
| 42 | */ |
||
| 43 | public function behaviors() |
||
| 51 | ]; |
||
| 52 | } |
||
| 53 | |||
| 54 | public function getNotifiable() |
||
| 57 | } |
||
| 58 | } |