Completed
Push — master ( b6a028...d1f27a )
by wen
01:50
created

ActionLogModel   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
4
namespace Sco\ActionLog\Models;
5
6
use Illuminate\Database\Eloquent\Model;
7
8
/**
9
 * Sco\ActionLog\Models\ActionLog
10
 *
11
 * @property int $id
12
 * @property int $user_id 操作者ID
13
 * @property string $type 操作类型
14
 * @property string $table_name 相关的数据表
15
 * @property string $content 操作描述
16
 * @property string $client_ip 操作者IP
17
 * @property \Carbon\Carbon $created_at
18
 * @property \Carbon\Carbon $updated_at
19
 * @method static \Illuminate\Database\Query\Builder|\Sco\ActionLog\Models\ActionLogModel whereClientIp($value)
20
 * @method static \Illuminate\Database\Query\Builder|\Sco\ActionLog\Models\ActionLogModel whereContent($value)
21
 * @method static \Illuminate\Database\Query\Builder|\Sco\ActionLog\Models\ActionLogModel whereCreatedAt($value)
22
 * @method static \Illuminate\Database\Query\Builder|\Sco\ActionLog\Models\ActionLogModel whereId($value)
23
 * @method static \Illuminate\Database\Query\Builder|\Sco\ActionLog\Models\ActionLogModel whereTableName($value)
24
 * @method static \Illuminate\Database\Query\Builder|\Sco\ActionLog\Models\ActionLogModel whereType($value)
25
 * @method static \Illuminate\Database\Query\Builder|\Sco\ActionLog\Models\ActionLogModel whereUpdatedAt($value)
26
 * @method static \Illuminate\Database\Query\Builder|\Sco\ActionLog\Models\ActionLogModel whereUserId($value)
27
 * @mixin \Eloquent
28
 */
29
class ActionLogModel extends Model
30
{
31
    public function __construct(array $attributes = [])
32
    {
33
        parent::__construct($attributes);
34
        $this->table = config('actionlog.table_name');
35
    }
36
}
37