Issues (39)

src/Models/ActivitiesTable/ActivitiesTrait.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Nip\MailModule\Models\ActivitiesTable;
4
5
use Nip\Records\Traits\AbstractTrait\RecordsTrait;
6
7
/**
8
 * Trait ActivitiesTrait
9
 * @package Nip\Mail\Models\ActivitiesTable
10
 */
11
trait ActivitiesTrait
12
{
13
    use RecordsTrait;
14
15
    protected function initRelations()
16
    {
17
        $this->belongsTo('Email');
0 ignored issues
show
It seems like belongsTo() must be provided by classes using this trait. How about adding it as abstract method to this trait? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

17
        $this->/** @scrutinizer ignore-call */ 
18
               belongsTo('Email');
Loading history...
18
    }
19
}
20