CampaignTranslation   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 10
c 0
b 0
f 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A campaign() 0 3 1
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