PHP Class Eloquent\Phony\Invocation\AbstractWrappedInvocable

Inheritance: extends AbstractInvocable, implements Eloquent\Phony\Invocation\WrappedInvocable
ファイルを表示 Open project: eloquent/phony Class Usage Examples

Protected Properties

Property Type Description
$callback
$isAnonymous
$label

Public Methods

Method Description
__construct ( callable | null $callback, string | null $label ) Construct a new wrapped invocable.
callback ( ) : callable Get the callback.
isAnonymous ( ) : boolean Returns true if anonymous.
label ( ) : string | null Get the label.
setLabel ( string | null $label ) Set the label.

Method Details

__construct() public method

Construct a new wrapped invocable.
public __construct ( callable | null $callback, string | null $label )
$callback callable | null The callback.
$label string | null The label.

callback() public method

Get the callback.
public callback ( ) : callable
return callable The callback.

isAnonymous() public method

Returns true if anonymous.
public isAnonymous ( ) : boolean
return boolean True if anonymous.

label() public method

Get the label.
public label ( ) : string | null
return string | null The label.

setLabel() public method

Set the label.
public setLabel ( string | null $label )
$label string | null The label.

Property Details

$callback protected_oe property

protected $callback

$isAnonymous protected_oe property

protected $isAnonymous

$label protected_oe property

protected $label