Copied!

Infers the constructor argument type.

AbstractInterface
Methods
public abstract getTypeFromConstructor(string $class, string $property) : ?Symfony\Component\TypeInfo\Type
 

Gets type of an argument from constructor.

  • param class-string $class
public abstract getTypesFromConstructor(string $class, string $property) : ?array
 

Gets types of an argument from constructor.

  • deprecated since Symfony 7.3, use "getTypeFromConstructor" instead
  • return \LegacyType[]|null
© 2025 Bruce Wells