Skip to content

Commit f7ee250

Browse files
authored
minor #1508 [make:entity] (private) method param / return type hints
1 parent 9fa3eaf commit f7ee250

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Maker/MakeEntity.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ public function configureDependencies(DependencyBuilder $dependencies, ?InputInt
340340
ORMDependencyBuilder::buildDependencies($dependencies);
341341
}
342342

343+
/** @param string[] $fields */
343344
private function askForNextField(ConsoleStyle $io, array $fields, string $entityClass, bool $isFirstField): EntityRelation|ClassProperty|null
344345
{
345346
$io->writeln('');
@@ -772,7 +773,7 @@ function ($name) use ($targetClass) {
772773
return $relation;
773774
}
774775

775-
private function askRelationType(ConsoleStyle $io, string $entityClass, string $targetEntityClass)
776+
private function askRelationType(ConsoleStyle $io, string $entityClass, string $targetEntityClass): string
776777
{
777778
$io->writeln('What type of relationship is this?');
778779

@@ -855,6 +856,7 @@ private function regenerateEntities(string $classOrNamespace, bool $overwrite, G
855856
$regenerator->regenerateEntities($classOrNamespace);
856857
}
857858

859+
/** @return string[] */
858860
private function getPropertyNames(string $class): array
859861
{
860862
if (!class_exists($class)) {
@@ -871,6 +873,7 @@ private function getEntityNamespace(): string
871873
return $this->doctrineHelper->getEntityNamespace();
872874
}
873875

876+
/** @return string[] */
874877
private function getTypesMap(): array
875878
{
876879
return Type::getTypesMap();

0 commit comments

Comments
 (0)