CreatesEntity   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
1
<?php
2
3
namespace Orkhanahmadov\EloquentRepository\Repository\Concerns;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Database\Eloquent\Builder;
7
8
/**
9
 * @property-read Builder|Model $model
10
 * @mixin \Orkhanahmadov\EloquentRepository\EloquentRepository
11
 */
12
trait CreatesEntity
13
{
14
    /**
15
     * Creates model.
16
     *
17
     * @param mixed $properties
18
     *
19
     * @return Builder|Model
20
     */
21
    public function create($properties)
22
    {
23
        return $this->model->create($properties);
24
    }
25
}
26