Test Failed
Pull Request — master (#2)
by Angel
04:11
created

CreditWorkLog::slugBehaviorConfig()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace app\api\models;
4
5
use app\models as base;
6
use roaresearch\yii2\roa\hal\{Contract, ContractTrait};
7
8
/**
9
 * ROA contract to handle credit_worklog records.
10
 */
11
class CreditWorkLog extends base\CreditWorkLog implements Contract
0 ignored issues
show
Bug introduced by
The type app\models\CreditWorkLog 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
    use ContractTrait;
14
15
    /**
16
     * @inheritdoc
17
     */
18
    protected function processClass(): string
19
    {
20
        return Credit::class;
21
    }
22
23
    /**
24
     * @inheritdoc
25
     */
26
    protected function slugBehaviorConfig(): array
27
    {
28
        return [
29
            'resourceName' => 'worklog',
30
            'parentSlugRelation' => 'process'
31
        ];
32
    }
33
}
34