PHP Interface GrumPHP\Task\TaskInterface

Datei anzeigen Open project: phpro/grumphp Interface Usage Examples

Public Methods

Method Description
canRunInContext ( GrumPHP\Task\Context\ContextInterface $context ) : boolean This methods specifies if a task can run in a specific context.
getConfigurableOptions ( ) : Symfony\Component\OptionsResolver\OptionsResolver
getConfiguration ( ) : array
getName ( ) : string
run ( GrumPHP\Task\Context\ContextInterface $context ) : GrumPHP\Runner\TaskResultInterface

Method Details

canRunInContext() public method

This methods specifies if a task can run in a specific context.
public canRunInContext ( GrumPHP\Task\Context\ContextInterface $context ) : boolean
$context GrumPHP\Task\Context\ContextInterface
return boolean

getConfigurableOptions() public method

public getConfigurableOptions ( ) : Symfony\Component\OptionsResolver\OptionsResolver
return Symfony\Component\OptionsResolver\OptionsResolver

getConfiguration() public method

public getConfiguration ( ) : array
return array

getName() public method

public getName ( ) : string
return string

run() public method

public run ( GrumPHP\Task\Context\ContextInterface $context ) : GrumPHP\Runner\TaskResultInterface
$context GrumPHP\Task\Context\ContextInterface
return GrumPHP\Runner\TaskResultInterface