Build::buildLogs()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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