Total Complexity | 3 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | class Transition extends base\Transition implements Contract |
||
12 | { |
||
13 | use ContractTrait { |
||
14 | getLinks as getContractLinks; |
||
15 | } |
||
16 | |||
17 | /** |
||
18 | * @inheritdoc |
||
19 | */ |
||
20 | protected $stageClass = Stage::class; |
||
21 | |||
22 | /** |
||
23 | * @inheritdoc |
||
24 | */ |
||
25 | protected $permissionClass = TransitionPermission::class; |
||
26 | |||
27 | /** |
||
28 | * @inheritdoc |
||
29 | */ |
||
30 | protected function slugBehaviorConfig(): array |
||
36 | ]; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | public function getLinks() |
||
43 | 6 | { |
|
44 | return array_merge($this->getContractLinks(), [ |
||
45 | 6 | 'permissions' => $this->getSelfLink() . '/permission', |
|
46 | 6 | 'target_stage' => $this->targetStage->getSelfLink(), |
|
|
|||
47 | 6 | ]); |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * @inheritdoc |
||
52 | */ |
||
53 | public function extraFields() |
||
56 | 6 | } |
|
57 | } |
||
58 |