Total Complexity | 3 |
Total Lines | 61 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | class SolicitudeValue extends base\SolicitudeValue implements Contract |
||
13 | { |
||
14 | use ContractTrait { |
||
15 | getLinks as getContractLinks; |
||
16 | } |
||
17 | |||
18 | /** |
||
19 | * @inheritdoc |
||
20 | */ |
||
21 | protected $sectionFieldClass = SectionField::class; |
||
22 | |||
23 | /** |
||
24 | * @inheritdoc |
||
25 | */ |
||
26 | protected $sectionClass = Section::class; |
||
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | protected $fieldClass = Field::class; |
||
32 | |||
33 | /** |
||
34 | * @inheritdoc |
||
35 | */ |
||
36 | protected $solicitudeClass = Solicitude::class; |
||
37 | |||
38 | /** |
||
39 | * @inheritdoc |
||
40 | */ |
||
41 | 5 | public function getLinks() |
|
42 | { |
||
43 | 5 | $selfLink = $this->getSelfLink(); |
|
|
|||
44 | |||
45 | 5 | return array_merge($this->getContractLinks(), [ |
|
46 | 5 | 'field' => $this->field->getSelfLink(), |
|
47 | 5 | 'section' => $this->section->getSelfLink(), |
|
48 | ]); |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @inheritdoc |
||
53 | */ |
||
54 | 6 | protected function slugBehaviorConfig(): array |
|
60 | ]; |
||
61 | } |
||
62 | |||
63 | /** |
||
64 | * @inheritdoc |
||
65 | */ |
||
66 | 5 | public function extraFields() |
|
73 | ]; |
||
74 | } |
||
76 |