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