Test Setup Failed
Push — master ( 698635...8c1479 )
by Jeremy
05:28 queued 12s
created

User::newFactory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace jeremykenedy\LaravelRoles\Test;
4
5
use Illuminate\Auth\Authenticatable;
6
use Illuminate\Database\Eloquent\Model;
7
use Illuminate\Foundation\Auth\Access\Authorizable;
8
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
9
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
10
use Illuminate\Database\Eloquent\Factories\HasFactory;
11
use jeremykenedy\LaravelRoles\Traits\HasRoleAndPermission;
12
13
class User extends Model implements AuthorizableContract, AuthenticatableContract
14
{
15
    use Authorizable;
16
    use Authenticatable;
0 ignored issues
show
Bug introduced by
The trait Illuminate\Auth\Authenticatable requires the property $password which is not provided by jeremykenedy\LaravelRoles\Test\User.
Loading history...
17
    use HasFactory;
18
    use HasRoleAndPermission;
0 ignored issues
show
introduced by
The trait jeremykenedy\LaravelRole...ts\HasRoleAndPermission requires some properties which are not provided by jeremykenedy\LaravelRoles\Test\User: $model, $slug, $level
Loading history...
19
20
    protected $guarded = [];
21
22
    protected $table = 'users';
23
24
    protected static function newFactory()
25
    {
26
        return UserFactory::new();
27
    }
28
}
29