Passed
Pull Request — main (#25)
by Seth
03:52 queued 01:14
created

ReleaseNote::newFactory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace SaasReady\Models;
4
5
use Carbon\Carbon;
6
use Illuminate\Database\Eloquent\Factories\HasFactory;
7
use Illuminate\Database\Eloquent\Model;
8
use Illuminate\Database\Eloquent\SoftDeletes;
9
use SaasReady\Database\Factories\ReleaseNoteFactory;
10
use SaasReady\Traits\EloquentBuilderMixin;
11
use SaasReady\Traits\HasUuid;
0 ignored issues
show
Bug introduced by
The type SaasReady\Traits\HasUuid was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
13
/**
14
 * @property-read int $id
15
 * @property string $version
16
 * @property string $note
17
 * @property ?Carbon $created_at
18
 * @property ?Carbon $updated_at
19
 *
20
 * @mixin EloquentBuilderMixin
21
 */
22
class ReleaseNote extends Model
23
{
24
    use HasFactory;
25
    use SoftDeletes;
26
    use HasUuid;
27
28
    protected $table = 'release_notes';
29
30
    protected $fillable = [
31
        'version',
32
        'note',
33
    ];
34
35
    /**
36
     * @codeCoverageIgnore
37
     */
38
    protected static function newFactory(): ReleaseNoteFactory
39
    {
40
        return ReleaseNoteFactory::new();
41
    }
42
}
43