66
77use EasyCorp \Bundle \EasyAdminBundle \Contracts \Controller \CrudControllerInterface ;
88use EasyCorp \Bundle \EasyAdminBundle \Contracts \Controller \DashboardControllerInterface ;
9- use Symfony \Contracts \Translation \TranslatableInterface ;
109
1110/**
1211 * @psalm-immutable
@@ -27,33 +26,27 @@ final class EntityMetadata
2726 /** @var class-string */
2827 private string $ targetEntityFqcn ;
2928
30- /** @var string|(callable(object):string|TranslatableInterface|null)|null */
31- private $ targetEntityDisplayField ;
32-
3329 private object |int |string |null $ targetEntityId ;
3430
3531 /**
36- * @param class-string<CrudControllerInterface> $sourceCrudControllerFqcn
37- * @param class-string<DashboardControllerInterface> $targetDashboardControllerFqcn
38- * @param class-string<CrudControllerInterface> $targetCrudControllerFqcn
39- * @param class-string $targetEntityFqcn
40- * @param string|(callable(object):string|TranslatableInterface|null)|null $targetEntityDisplayField
32+ * @param class-string<CrudControllerInterface> $sourceCrudControllerFqcn
33+ * @param class-string<DashboardControllerInterface> $targetDashboardControllerFqcn
34+ * @param class-string<CrudControllerInterface> $targetCrudControllerFqcn
35+ * @param class-string $targetEntityFqcn
4136 */
4237 public function __construct (
4338 object |int |string |null $ sourceEntityId ,
4439 string $ sourceCrudControllerFqcn ,
4540 string $ targetDashboardControllerFqcn ,
4641 string $ targetCrudControllerFqcn ,
4742 string $ targetEntityFqcn ,
48- string |callable |null $ targetEntityDisplayField ,
4943 object |int |string |null $ targetEntityId ,
5044 ) {
5145 $ this ->sourceEntityId = $ sourceEntityId ;
5246 $ this ->sourceCrudControllerFqcn = $ sourceCrudControllerFqcn ;
5347 $ this ->targetDashboardControllerFqcn = $ targetDashboardControllerFqcn ;
5448 $ this ->targetCrudControllerFqcn = $ targetCrudControllerFqcn ;
5549 $ this ->targetEntityFqcn = $ targetEntityFqcn ;
56- $ this ->targetEntityDisplayField = $ targetEntityDisplayField ;
5750 $ this ->targetEntityId = $ targetEntityId ;
5851 }
5952
@@ -94,14 +87,6 @@ public function targetEntityFqcn(): string
9487 return $ this ->targetEntityFqcn ;
9588 }
9689
97- /**
98- * @return string|(callable(object):string|TranslatableInterface|null)|null
99- */
100- public function targetEntityDisplayField (): string |callable |null
101- {
102- return $ this ->targetEntityDisplayField ;
103- }
104-
10590 public function targetEntityId (): object |int |string |null
10691 {
10792 return $ this ->targetEntityId ;
0 commit comments