class Illuminate / Support / Reflector
You are viewing an older version of the documentation. For the latest, please visit master documentation.

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