Build   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildLogs() 0 4 1
1
<?php
2
3
namespace Faithgen\AppBuild\Models;
4
5
use FaithGen\SDK\Models\UuidModel;
6
use FaithGen\SDK\Traits\Relationships\Belongs\BelongsToMinistryTrait;
7
8
class Build extends UuidModel
9
{
10
    use BelongsToMinistryTrait;
11
12
    protected $guarded = ['id'];
13
    protected $table = 'fg_app_builds';
14
15
    public const BUILD_STATUS = ['successful', 'failed', 'building'];
16
17
    /**
18
     * Links the current build to many logs.
19
     *
20
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
21
     */
22
    public function buildLogs()
23
    {
24
        return $this->hasMany(BuildLog::class);
25
    }
26
}
27