Passed
Push — master ( 67253e...1a1f73 )
by Arthur
04:53 queued 11s
created

User   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 11
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A ownerId() 0 3 1
1
<?php
2
3
namespace Modules\User\Entities;
4
5
use Foundation\Abstracts\MongoModel;
6
use Foundation\Contracts\Cacheable;
7
use Foundation\Contracts\Ownable;
8
use Foundation\Traits\OwnedByUser;
9
use Illuminate\Auth\Authenticatable;
10
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
11
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
12
use Illuminate\Foundation\Auth\Access\Authorizable;
13
use Illuminate\Notifications\Notifiable;
14
15
class User extends MongoModel implements AuthorizableContract, AuthenticatableContract, Cacheable, Ownable
16
{
17
    use Notifiable, Authorizable, Authenticatable, OwnedByUser;
0 ignored issues
show
introduced by
The trait Illuminate\Notifications\Notifiable requires some properties which are not provided by Modules\User\Entities\User: $email, $phone_number
Loading history...
Bug introduced by
The trait Illuminate\Auth\Authenticatable requires the property $password which is not provided by Modules\User\Entities\User.
Loading history...
18
19
    protected $collection = 'users';
20
21
    protected $guarded = [];
22
23
    public function ownerId()
24
    {
25
        return $this->id;
26
    }
27
28
29
}
30