Completed
Push — master ( 15e1a8...208337 )
by Manel
03:15
created

GcmToken   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 21
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A user() 0 4 1
1
<?php
2
3
namespace Scool\EnrollmentMobile\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Manelgavalda\EnrollmentMobileTest\User;
7
8
/**
9
 * Class GcmToken.
10
 *
11
 * @package ManelGavalda\TodosBackend
12
 */
13
class GcmToken extends Model
14
{
15
    /**
16
     * The attributes that are mass assignable.
17
     *
18
     * @var array
19
     */
20
    protected $fillable = [
21
        'registration_id'
22
    ];
23
24
    /**
25
     * A message belong to a user
26
     *
27
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
28
     */
29
    public function user()
30
    {
31
        return $this->belongsTo(User::class);
32
    }
33
}