TeamworkTeam   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 27
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Mpociot\Teamwork;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Support\Facades\Config;
7
use Mpociot\Teamwork\Traits\TeamworkTeamTrait;
8
9
class TeamworkTeam extends Model
10
{
11
    use TeamworkTeamTrait;
12
13
    /**
14
     * The database table used by the model.
15
     *
16
     * @var string
17
     */
18
    protected $table;
19
20
    /**
21
     * @var array
22
     */
23
    protected $fillable = ['name', 'owner_id'];
24
25
    /**
26
     * Creates a new instance of the model.
27
     *
28
     * @param array $attributes
29
     */
30
    public function __construct(array $attributes = [])
31
    {
32
        parent::__construct($attributes);
33
        $this->table = Config::get('teamwork.teams_table');
34
    }
35
}
36