Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
3 / 3
CRAP
100.00% covered (success)
100.00%
3 / 3
CustomerAnswer
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
3 / 3
3
100.00% covered (success)
100.00%
3 / 3
 getUpdatedAtColumn
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 customer
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 answer
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
1<?php
2
3namespace App\Models;
4
5use Illuminate\Database\Eloquent\Relations\Pivot;
6
7class CustomerAnswer extends Pivot
8{
9    /**
10     * Inhibit update_at column as we only have
11     * created_at
12     *
13     * @return null
14     */
15    public function getUpdatedAtColumn()
16    {
17        return null;
18    }
19
20    // * RELATIONS
21
22    /**
23     * Customer belongsTo relation
24     *
25     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
26     */
27    public function customer()
28    {
29        return $this->belongsTo(Customer::class);
30    }
31
32    /**
33     * Customer belongsTo relation
34     *
35     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
36     */
37    public function answer()
38    {
39        return $this->belongsTo(Answer::class);
40    }
41}