Completed
Push — master ( 90d2ed...93cf6b )
by Ricardo
04:10
created

EntityAbstract   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A make() 0 6 1
1
<?php
2
namespace Fabrica\Entities;
3
4
use Muleta\Contracts\Support\Arrayable;
5
use Muleta\Contracts\Support\ArrayableTrait;
6
use Muleta\Traits\Debugger\HasErrors;
7
use Muleta\Traits\Coder\GetSetTrait;
8
use Muleta\Contracts\Output\OutputableTrait;
9
use Illuminate\Database\Eloquent\Collection;
10
use Support\Repositories\EntityRepository;
11
12
abstract class EntityAbstract implements Arrayable
13
{
14
    use ArrayableTrait;
15
16
    public $code;
17
    
18
    public function __construct($code = '')
19
    {
20
        $this->code = $code;
21
    }
22
    
23
    public static function make($code = '')
24
    {
25
        return new static(
26
            $code
27
        );
28
    }
29
    
30
}