Passed
Push — main ( 93d181...6c645c )
by PRATIK
15:49
created

Application   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

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
15
    public function __construct(array $attributes = [])
16
    {
17
        $this->table = config('website.table_prefix', 'website') . '_applications';
18
19
        parent::__construct($attributes);
20
    }
21
22
    // Relationship
23
    public function career()
24
    {
25
        return $this->belongsTo(Career::class);
26
    }
27
}
28