Password   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 22
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Benjafield\LaravelPasswordManager;
4
5
use Benjafield\LaravelPasswordManager\Contracts\MakesPassword;
6
use Benjafield\LaravelPasswordManager\Traits\CanMakePassword;
7
use Illuminate\Database\Eloquent\Model;
8
9
class Password extends Model implements MakesPassword
10
{
11
    use CanMakePassword;
12
13
    /**
14
     * The attributes that are mass assignable.
15
     *
16
     * @var string[]
17
     */
18
    protected $fillable = [
19
        'name', 'dynamic', 'password',
20
    ];
21
22
    /**
23
     * Create a new Eloquent instance and set the database table.
24
     *
25
     * @param array $attributes
26
     */
27
    public function __construct(array $attributes = [])
28
    {
29
        parent::__construct($attributes);
30
        $this->setTable(config('passwords.table'));
31
    }
32
}