Completed
Push — master ( 662b17...55cf61 )
by Oliver
10:02
created

MetableModel   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setProperty() 0 4 1
1
<?php
2
3
namespace BoxedCode\Tests\Eloquent\Meta\Stubs;
4
5
use BoxedCode\Eloquent\Meta\Metable;
6
use Illuminate\Database\Eloquent\Model;
7
8
class MetableModel extends Model
9
{
10
    use Metable;
11
12
    protected $table = 'models';
13
14
    public function setProperty($name, $value)
15
    {
16
        $this->$name = $value;
17
    }
18
}
19