PHP Class DataSift\Storyplayer\Console\DefaultConsole

Inheritance: extends Console
Afficher le fichier Open project: datasift/storyplayer Class Usage Examples

Protected Properties

Свойство Type Description
$currentPhase
$phaseMessages
$phaseNumber
$storyResults array a list of the results we have received from stories

Méthodes publiques

Méthode Description
endPhase ( $phase, $phaseResult ) : void called when a story ends a phase
endPhaseGroup ( $result )
endStoryplayer ( $duration )
logCliError ( string $msg ) : void called when the outer CLI shell encounters a fatal error
logCliErrorWithException ( string $msg, Exception $e ) : void
logCliInfo ( string $msg ) : void called when the outer CLI shell needs to tell the user something
logCliWarning ( string $msg ) : void called when the outer CLI shell needs to publish a warning
logPhaseActivity ( string $msg, $codeLine = null ) : void called when a story logs an action
logPhaseCodeLine ( $codeLine )
logPhaseError ( string $phaseName, string $msg ) : void called when a story logs an error
logPhaseSkipped ( string $phaseName, string $msg ) : void called when a story is skipped
logPhaseSubprocessOutput ( string $msg ) : void called when a story logs the (possibly partial) output from running a subprocess
logVardump ( string $name, mixed $var ) : void an alternative to using PHP's built-in var_dump()
startPhase ( $phase ) : void called when a story starts a new phase
startPhaseGroup ( $activity, string $name ) : void called when we start a new set of phases
startStoryplayer ( string $version, string $url, string $copyright, string $license ) : void called when storyplayer starts

Method Details

endPhase() public méthode

called when a story ends a phase
public endPhase ( $phase, $phaseResult ) : void
Résultat void

endPhaseGroup() public méthode

public endPhaseGroup ( $result )

endStoryplayer() public méthode

public endStoryplayer ( $duration )

logCliError() public méthode

called when the outer CLI shell encounters a fatal error
public logCliError ( string $msg ) : void
$msg string the error message to show the user
Résultat void

logCliErrorWithException() public méthode

public logCliErrorWithException ( string $msg, Exception $e ) : void
$msg string
$e Exception
Résultat void

logCliInfo() public méthode

called when the outer CLI shell needs to tell the user something
public logCliInfo ( string $msg ) : void
$msg string the message to show the user
Résultat void

logCliWarning() public méthode

called when the outer CLI shell needs to publish a warning
public logCliWarning ( string $msg ) : void
$msg string the warning message to show the user
Résultat void

logPhaseActivity() public méthode

called when a story logs an action
public logPhaseActivity ( string $msg, $codeLine = null ) : void
$msg string
Résultat void

logPhaseCodeLine() public méthode

public logPhaseCodeLine ( $codeLine )

logPhaseError() public méthode

called when a story logs an error
public logPhaseError ( string $phaseName, string $msg ) : void
$phaseName string
$msg string
Résultat void

logPhaseSkipped() public méthode

called when a story is skipped
public logPhaseSkipped ( string $phaseName, string $msg ) : void
$phaseName string
$msg string
Résultat void

logPhaseSubprocessOutput() public méthode

called when a story logs the (possibly partial) output from running a subprocess
public logPhaseSubprocessOutput ( string $msg ) : void
$msg string the output to log
Résultat void

logVardump() public méthode

an alternative to using PHP's built-in var_dump()
public logVardump ( string $name, mixed $var ) : void
$name string a human-readable name to describe $var
$var mixed the variable to dump
Résultat void

startPhase() public méthode

called when a story starts a new phase
public startPhase ( $phase ) : void
Résultat void

startPhaseGroup() public méthode

called when we start a new set of phases
public startPhaseGroup ( $activity, string $name ) : void
$name string
Résultat void

startStoryplayer() public méthode

called when storyplayer starts
public startStoryplayer ( string $version, string $url, string $copyright, string $license ) : void
$version string
$url string
$copyright string
$license string
Résultat void

Property Details

$currentPhase protected_oe property

protected $currentPhase

$phaseMessages protected_oe property

protected $phaseMessages

$phaseNumber protected_oe property

protected $phaseNumber

$storyResults protected_oe property

a list of the results we have received from stories
protected array $storyResults
Résultat array