class Illuminate / Container / Util

Util

Methods

public static

arrayWrap ( $value ) : array

If the given value is not an array and not null, wrap it in one.

Parameters

  • $value mixed
public static

unwrapIfClosure ( $value , $args ) : mixed

Return the default value of the given value.

Parameters

  • $value mixed
  • $args mixed
public static

getParameterClassName ( $parameter ) : string|null

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

Parameters