Application   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 6
c 1
b 0
f 0
dl 0
loc 17
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A career() 0 3 1
A __construct() 0 5 1
1
<?php
2
3
namespace Adminetic\Website\Models\Admin;
4
5
use Illuminate\Database\Eloquent\Factories\HasFactory;
6
use Illuminate\Database\Eloquent\Model;
7
8
class Application extends Model
9
{
10
    use HasFactory;
11
12
    protected $guarded = [];
13
14
    public function __construct(array $attributes = [])
15
    {
16
        $this->table = config('website.table_prefix', 'website').'_applications';
17
18
        parent::__construct($attributes);
19
    }
20
21
    // Relationship
22
    public function career()
23
    {
24
        return $this->belongsTo(Career::class);
25
    }
26
}
27