Completed
Push — master ( 8e3c70...7c4bfd )
by vistart
07:52 queued 01:35
created

BaseNotificationModel::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
crap 1
1
<?php
2
3
/**
4
 *  _   __ __ _____ _____ ___  ____  _____
5
 * | | / // // ___//_  _//   ||  __||_   _|
6
 * | |/ // /(__  )  / / / /| || |     | |
7
 * |___//_//____/  /_/ /_/ |_||_|     |_|
8
 * @link https://vistart.name/
9
 * @copyright Copyright (c) 2016 vistart
10
 * @license https://vistart.name/license/
11
 */
12
13
namespace vistart\Models\models;
14
15
use vistart\Models\traits\NotificationTrait;
16
17
/**
18
 * Description of BaseNotificationModel
19
 *
20
 * @author vistart <[email protected]>
21
 */
22
abstract class BaseNotificationModel extends BaseBlameableModel
23
{
24
    use NotificationTrait;
25
26
    public $expiredAt = 604800;
27
    public $updatedAtAttribute = false;
28
    public $updatedByAttribute = false;
29
30 1
    public function init()
31
    {
32 1
        $this->on(static::EVENT_AFTER_DELETE, [$this, 'onDeleteNotificationRead']);
33 1
        parent::init();
34 1
    }
35
}
36