Completed
Push — master ( 2b2c94...1ed135 )
by Mahmoud
04:58
created

UserRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 23
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A model() 0 4 1
1
<?php
2
3
namespace App\Containers\User\Data\Repositories;
4
5
use App\Containers\User\Contracts\UserRepositoryInterface;
6
use App\Containers\User\Models\User;
7
use App\Port\Repository\Abstracts\Repository;
8
9
/**
10
 * Class UserRepository.
11
 *
12
 * @author Mahmoud Zalt <[email protected]>
13
 */
14
class UserRepository extends Repository implements UserRepositoryInterface
15
{
16
17
    /**
18
     * @var array
19
     */
20
    protected $fieldSearchable = [
21
        'name'          => 'like',
22
        'id'            => '=',
23
        'visitor_id'    => '=',
24
        'email'         => '=',
25
    ];
26
27
    /**
28
     * Specify Model class name.
29
     *
30
     * @return string
31
     */
32
    public function model()
33
    {
34
        return User::class;
35
    }
36
}
37