diff --git a/src/Maker/MakeEntity.php b/src/Maker/MakeEntity.php index f87233fb9..421e875bc 100644 --- a/src/Maker/MakeEntity.php +++ b/src/Maker/MakeEntity.php @@ -340,6 +340,7 @@ public function configureDependencies(DependencyBuilder $dependencies, ?InputInt ORMDependencyBuilder::buildDependencies($dependencies); } + /** @param string[] $fields */ private function askForNextField(ConsoleStyle $io, array $fields, string $entityClass, bool $isFirstField): EntityRelation|ClassProperty|null { $io->writeln(''); @@ -772,7 +773,7 @@ function ($name) use ($targetClass) { return $relation; } - private function askRelationType(ConsoleStyle $io, string $entityClass, string $targetEntityClass) + private function askRelationType(ConsoleStyle $io, string $entityClass, string $targetEntityClass): string { $io->writeln('What type of relationship is this?'); @@ -855,6 +856,7 @@ private function regenerateEntities(string $classOrNamespace, bool $overwrite, G $regenerator->regenerateEntities($classOrNamespace); } + /** @return string[] */ private function getPropertyNames(string $class): array { if (!class_exists($class)) { @@ -871,6 +873,7 @@ private function getEntityNamespace(): string return $this->doctrineHelper->getEntityNamespace(); } + /** @return string[] */ private function getTypesMap(): array { return Type::getTypesMap();