CampaignTranslation::campaign()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
nc 1
nop 0
dl 0
loc 3
c 0
b 0
f 0
cc 1
rs 10
1
<?php
2
3
namespace Diglabby\Doika\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Database\Eloquent\Relations\BelongsTo;
7
use Illuminate\Support\Carbon;
8
9
/**
10
 * @property int $id
11
 * @property int $campaign_id
12
 * @property string $locale
13
 * @property string $name
14
 * @property string $description
15
 * @property string $terms_of_use
16
 * @property Carbon $created_at
17
 * @property Carbon $updated_at
18
 *
19
 * Relationships:
20
 * @property-read Campaign $campaign
21
 */
22
final class CampaignTranslation extends Model
23
{
24
    /** @var array Default attributes */
25
    protected $attributes = [
26
        'description' => '',
27
    ];
28
29
    public function campaign(): BelongsTo
30
    {
31
        return $this->belongsTo(Campaign::class);
32
    }
33
}
34