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

EntityAbstract::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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
}