Passed
Push — master ( 928b41...747121 )
by Darko
10:52
created

AnidbTitle::episode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Database\Eloquent\Relations\HasMany;
7
8
/**
9
 * App\Models\AnidbTitle.
10
 *
11
 * @property int $anidbid ID of title from AniDB
12
 * @property string $type type of title.
13
 * @property string $lang
14
 * @property string $title
15
 * @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\AnidbInfo[] $info
16
 *
17
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbTitle whereAnidbid($value)
18
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbTitle whereLang($value)
19
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbTitle whereTitle($value)
20
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbTitle whereType($value)
21
 *
22
 * @mixin \Eloquent
23
 *
24
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbTitle newModelQuery()
25
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbTitle newQuery()
26
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbTitle query()
27
 */
28
class AnidbTitle extends Model
29
{
30
    /**
31
     * @var string
32
     */
33
    protected $primaryKey = 'anidbid';
34
35
    /**
36
     * @var bool
37
     */
38
    protected $dateFormat = false;
39
40
    /**
41
     * @var bool
42
     */
43
    public $incrementing = false;
44
45
    /**
46
     * @var bool
47
     */
48
    public $timestamps = false;
49
50
    /**
51
     * @var array
52
     */
53
    protected $guarded = [];
54
55
    public function info(): HasMany
56
    {
57
        return $this->hasMany(AnidbInfo::class, 'anidbid');
58
    }
59
}
60