WorkplacePhoto::workplace_photo_caption()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 1
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
 * Created by Reliese Model.
5
 * Date: Thu, 12 Jul 2018 22:39:28 +0000.
6
 */
7
8
namespace App\Models;
9
10
/**
11
 * Class WorkplacePhoto
12
 *
13
 * @property int $id
14
 * @property boolean $image
15
 * @property string $mime_type
16
 * @property int $size
17
 * @property \Jenssegers\Date\Date $created_at
18
 * @property \Jenssegers\Date\Date $updated_at
19
 *
20
 * @property \App\Models\WorkplacePhotoCaption $workplace_photo_caption
21
 */
22
class WorkplacePhoto extends BaseModel
23
{
24
25
    protected $casts = [
26
        'image' => 'boolean',
27
        'size' => 'int'
28
    ];
29
    protected $fillable = [
30
        'image'
31
    ];
32
33
    public function workplace_photo_caption()
34
    {
35
        return $this->hasOne(\App\Models\WorkplacePhotoCaption::class);
36
    }
37
}
38