TeamInvite::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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\TeamworkTeamInviteTrait;
8
9
class TeamInvite extends Model
10
{
11
    use TeamworkTeamInviteTrait;
12
13
    /**
14
     * The database table used by the model.
15
     *
16
     * @var string
17
     */
18
    protected $table;
19
20
    /**
21
     * Creates a new instance of the model.
22
     *
23
     * @param array $attributes
24
     */
25
    public function __construct(array $attributes = [])
26
    {
27
        parent::__construct($attributes);
28
        $this->table = Config::get('teamwork.team_invites_table');
29
    }
30
}
31