Application::career()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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