Model   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 27
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Arcanedev\LaravelMessenger\Models;
6
7
use Arcanedev\Support\Database\PrefixedModel;
8
use Illuminate\Database\Eloquent\SoftDeletes;
9
10
/**
11
 * Class     Model
12
 *
13
 * @package  Arcanedev\LaravelMessenger\Bases
14
 * @author   ARCANEDEV <[email protected]>
15
 */
16
abstract class Model extends PrefixedModel
17
{
18
    /* -----------------------------------------------------------------
19
     |  Traits
20
     | -----------------------------------------------------------------
21
     */
22
23
    use SoftDeletes;
24
25
    /* -----------------------------------------------------------------
26
     |  Constructor
27
     | -----------------------------------------------------------------
28
     */
29
30
    /**
31
     * Create a new Eloquent model instance.
32
     *
33
     * @param  array  $attributes
34
     */
35 240
    public function __construct(array $attributes = [])
36
    {
37 240
        $this->setConnection(config('messenger.database.connection'));
38 240
        $this->setPrefix(config('messenger.database.prefix'));
39
40 240
        parent::__construct($attributes);
41 240
    }
42
}
43