File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,17 @@ private function getColumnsOf(string $tableName): Collection
76
76
77
77
private function generateBaseContent (string $ filenameWithPath ): string
78
78
{
79
- $ mysqlRepoCreator = new CreatorMySqlRepository (
79
+ $ mysqlRepoCreator = $ this ->makeMySqlRepoCreator ();
80
+
81
+ return (new BaseCreator ($ mysqlRepoCreator ))->createClass ($ filenameWithPath , $ this );
82
+ }
83
+
84
+ /**
85
+ * @return CreatorMySqlRepository
86
+ */
87
+ private function makeMySqlRepoCreator (): CreatorMySqlRepository
88
+ {
89
+ return new CreatorMySqlRepository (
80
90
$ this ->getColumnsOf ($ this ->tableName ),
81
91
$ this ->tableName ,
82
92
$ this ->entityName ,
@@ -90,7 +100,5 @@ private function generateBaseContent(string $filenameWithPath): string
90
100
$ this ->mysqlRepositoryStubsPath ,
91
101
$ this ->detectForeignKeys
92
102
);
93
-
94
- return (new BaseCreator ($ mysqlRepoCreator ))->createClass ($ filenameWithPath , $ this );
95
103
}
96
104
}
You can’t perform that action at this time.
0 commit comments