class Illuminate / Support / Reflector
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

Reflector

Methods

public static

isCallable ( $var , $syntaxOnly ) : bool

This is a PHP 7.4 compatible implementation of is_callable.

Parameters

  • $var mixed
  • $syntaxOnly bool
public static

getParameterClassName ( $parameter ) : string|null

Get the class name of the given parameter's type, if possible.

Parameters

public static

getParameterClassNames ( $parameter ) : array

Get the class names of the given parameter's type, including union types.

Parameters

protected static

getTypeName ( $parameter , $type ) : string

Get the given type's class name.

Parameters

public static

isParameterSubclassOf ( $parameter , $className ) : bool

Determine if the parameter's type is a subclass of the given type.

Parameters

public static

isParameterBackedEnumWithStringBackingType ( $parameter ) : bool

Determine if the parameter's type is a Backed Enum with a string backing type.

Parameters