Failed Conditions
Push — master ( 385b2f...f2f4ce )
by Rafael
16s queued 13s
created

AbstractModel::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 2
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Canvas\Models;
5
6
abstract class AbstractModel extends \Baka\Database\Model
0 ignored issues
show
Bug introduced by
The type Baka\Database\Model 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...
7
{
8
    /**
9
     * Define if need the key for the mode activity plan
10
     * this is need if we need the cleanup the name of the model activity.
11
     *
12
     * @var string
13
     */
14
    protected $subscriptionPlanLimitKey = null;
15
16
    /**
17
     * Get the primary id of this model.
18
     *
19
     * @return int
20
     */
21
    public function getId() : int
22
    {
23
        return (int) $this->id;
24
    }
25
}
26