11<?php
22declare (strict_types=1 );
33
4+ /**
5+ * Pimcore
6+ *
7+ * This source file is available under two different licenses:
8+ * - GNU General Public License version 3 (GPLv3)
9+ * - Pimcore Commercial License (PCL)
10+ * Full copyright and license information is available in
11+ * LICENSE.md which is distributed with this source code.
12+ *
13+ * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
14+ * @license http://www.pimcore.org/license GPLv3 and PCL
15+ */
16+
417namespace Pimcore \Bundle \StaticResolverBundle \Contract \Models \DataObject ;
518
619use Exception ;
20+ use Pimcore \Model ;
721use Pimcore \Model \Asset ;
822use Pimcore \Model \DataObject \AbstractObject ;
923use Pimcore \Model \DataObject \ClassDefinition ;
1024use Pimcore \Model \DataObject \ClassDefinition \Data ;
1125use Pimcore \Model \DataObject \ClassDefinition \Layout ;
1226use Pimcore \Model \DataObject \Concrete ;
27+ use Pimcore \Model \DataObject \Fieldcollection ;
1328use Pimcore \Model \DataObject \Fieldcollection \Data \AbstractData as FieldCollectionData ;
1429use Pimcore \Model \DataObject \Folder ;
30+ use Pimcore \Model \DataObject \Objectbrick ;
1531use Pimcore \Model \DataObject \Objectbrick \Data \AbstractData as ObjectBrickData ;
1632use Pimcore \Model \DataObject \Service ;
1733use Pimcore \Model \Document ;
1834use Pimcore \Model \Element \ElementInterface ;
1935use Pimcore \Model \UserInterface ;
20- use Pimcore \Model \DataObject \Fieldcollection ;
21- use Pimcore \Model \DataObject \Objectbrick ;
22- use Pimcore \Model ;
2336
2437class DataObjectServiceResolverContract implements DataObjectServiceResolverContractInterface
2538{
26-
2739 public function useInheritedValues (bool $ inheritValues , callable $ fn , array $ fnArgs = []): mixed
2840 {
2941 return Service::useInheritedValues ($ inheritValues , $ fn , $ fnArgs );
@@ -55,8 +67,7 @@ public function extractFieldDefinitions(
5567 string $ targetClass ,
5668 array $ targetList ,
5769 bool $ insideDataType
58- ): array
59- {
70+ ): array {
6071
6172 return Service::extractFieldDefinitions ($ layout , $ targetClass , $ targetList , $ insideDataType );
6273 }
@@ -84,8 +95,7 @@ public function getLanguagePermissions(
8495 FieldCollectionData |ObjectBrickData |AbstractObject $ object ,
8596 UserInterface $ user ,
8697 string $ type
87- ): ?array
88- {
98+ ): ?array {
8999 return Service::getLanguagePermissions ($ object , $ user , $ type );
90100 }
91101
@@ -94,8 +104,7 @@ public function calculateCellValue(
94104 array $ helperDefinitions ,
95105 string $ key ,
96106 array $ context = []
97- ): mixed
98- {
107+ ): mixed {
99108 return Service::calculateCellValue ($ object , $ helperDefinitions , $ key , $ context );
100109 }
101110
@@ -122,16 +131,14 @@ public function loadAllObjectFields(AbstractObject $object): void
122131 public function getOptionsForSelectField (
123132 string |Concrete $ object ,
124133 ClassDefinition \Data \Multiselect |ClassDefinition \Data \Select |string $ definition
125- ): array
126- {
134+ ): array {
127135 return Service::getOptionsForSelectField ($ object , $ definition );
128136 }
129137
130138 public function getOptionsForMultiSelectField (
131139 string |Concrete $ object ,
132140 ClassDefinition \Data \Multiselect |ClassDefinition \Data \Select |string $ fieldname
133- ): array
134- {
141+ ): array {
135142 return Service::getOptionsForMultiSelectField ($ object , $ fieldname );
136143 }
137144
@@ -158,8 +165,7 @@ public function getUniqueKey(ElementInterface $element, int $nr = 0): string
158165 public function getCalculatedFieldValue (
159166 Fieldcollection \Data \AbstractData |Objectbrick \Data \AbstractData |Concrete $ object ,
160167 ?Data \CalculatedValue $ data
161- ): mixed
162- {
168+ ): mixed {
163169 return Service::getCalculatedFieldValue ($ object , $ data );
164170 }
165171
@@ -176,8 +182,7 @@ public function doResetDirtyMap(Model\AbstractModel $container, ClassDefinition|
176182 public function recursiveResetDirtyMap (
177183 Model \AbstractModel $ container ,
178184 ClassDefinition |ClassDefinition \Data $ fd
179- ): void
180- {
185+ ): void {
181186 Service::doResetDirtyMap ($ container , $ fd );
182187 }
183188
@@ -241,8 +246,7 @@ public function getElementFromSession(
241246 int $ elementId ,
242247 string $ sessionId ,
243248 ?string $ postfix = ''
244- ): Asset |Document |AbstractObject |null
245- {
249+ ): Asset |Document |AbstractObject |null {
246250 return Service::getElementFromSession ($ type , $ elementId , $ sessionId , $ postfix );
247251 }
248252
0 commit comments