PHP 클래스 DataSift\Storyplayer\Console\ScriptConsole

저자: Stuart Herbert ([email protected])
상속: extends Console
파일 보기 프로젝트 열기: datasift/storyplayer

보호된 프로퍼티들

프로퍼티 타입 설명
$verbosityLevel

공개 메소드들

메소드 설명
endPhase ( $phase, $phaseResult ) : void called when a story ends a phase
endPhaseGroup ( $result )
endStoryplayer ( $duration ) : void called when Storyplayer exits
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()
setVerbosity ( $verbosityLevel )
startPhase ( $phase ) : void called when a story starts a new phase
startPhaseGroup ( $activity, $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

메소드 상세

endPhase() 공개 메소드

called when a story ends a phase
public endPhase ( $phase, $phaseResult ) : void
리턴 void

endPhaseGroup() 공개 메소드

public endPhaseGroup ( $result )

endStoryplayer() 공개 메소드

called when Storyplayer exits
public endStoryplayer ( $duration ) : void
리턴 void

logCliError() 공개 메소드

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

logCliErrorWithException() 공개 메소드

public logCliErrorWithException ( string $msg, Exception $e ) : void
$msg string
$e Exception
리턴 void

logCliInfo() 공개 메소드

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
리턴 void

logCliWarning() 공개 메소드

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
리턴 void

logPhaseActivity() 공개 메소드

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

logPhaseCodeLine() 공개 메소드

public logPhaseCodeLine ( $codeLine )

logPhaseError() 공개 메소드

called when a story logs an error
public logPhaseError ( string $phaseName, string $msg ) : void
$phaseName string
$msg string
리턴 void

logPhaseSkipped() 공개 메소드

called when a story is skipped
public logPhaseSkipped ( string $phaseName, string $msg ) : void
$phaseName string
$msg string
리턴 void

logPhaseSubprocessOutput() 공개 메소드

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

logVardump() 공개 메소드

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
리턴 void

setVerbosity() 공개 메소드

public setVerbosity ( $verbosityLevel )

startPhase() 공개 메소드

called when a story starts a new phase
public startPhase ( $phase ) : void
리턴 void

startPhaseGroup() 공개 메소드

called when we start a new set of phases
public startPhaseGroup ( $activity, $name ) : void
리턴 void

startStoryplayer() 공개 메소드

called when storyplayer starts
public startStoryplayer ( string $version, string $url, string $copyright, string $license ) : void
$version string
$url string
$copyright string
$license string
리턴 void

프로퍼티 상세

$verbosityLevel 보호되어 있는 프로퍼티

protected $verbosityLevel