PHP Class Spatie\String\Integrations\Underscore

Datei anzeigen Open project: spatie/string Class Usage Examples

Protected Properties

Property Type Description
$underscoreMethods

Public Methods

Method Description
call ( Str $string, string $method, array $args ) : mixed | Str
isSupportedMethod ( $method ) : boolean Determine if the given method is supported.
methodReturnsAString ( $method ) : boolean Determine if the given method returns a string.
methodUsesStringAsFirstArgument ( $method ) : boolean Determine if the given method uses the string as it's first argument.

Method Details

call() public method

public call ( Str $string, string $method, array $args ) : mixed | Str
$string Spatie\String\Str
$method string
$args array
return mixed | Spatie\String\Str

isSupportedMethod() public method

Determine if the given method is supported.
public isSupportedMethod ( $method ) : boolean
$method
return boolean

methodReturnsAString() public method

Determine if the given method returns a string.
public methodReturnsAString ( $method ) : boolean
$method
return boolean

methodUsesStringAsFirstArgument() public method

Determine if the given method uses the string as it's first argument.
public methodUsesStringAsFirstArgument ( $method ) : boolean
$method
return boolean

Property Details

$underscoreMethods protected_oe property

protected $underscoreMethods