Skip to content

Commit

Permalink
minor #1508 [make:entity] (private) method param / return type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
jrushlow authored Apr 5, 2024
1 parent 9fa3eaf commit f7ee250
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Maker/MakeEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
Expand Down Expand Up @@ -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?');

Expand Down Expand Up @@ -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)) {
Expand All @@ -871,6 +873,7 @@ private function getEntityNamespace(): string
return $this->doctrineHelper->getEntityNamespace();
}

/** @return string[] */
private function getTypesMap(): array
{
return Type::getTypesMap();
Expand Down

0 comments on commit f7ee250

Please sign in to comment.