PHP 클래스 DataSift\Storyplayer\PlayerLib\Action_LogItem

저자: Stuart Herbert ([email protected])
파일 보기 프로젝트 열기: datasift/storyplayer 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( DataSift\Storyplayer\Injectables $injectables, integer $nestLevel )
addStep ( string $text, callback $callable ) : mixed
captureOutput ( $text ) : void
closeAllOpenSubActions ( ) : void
endAction ( mixed $message = null )
endStep ( ) : void
getEndTime ( ) : float | null
getIsComplete ( ) : boolean
getIsOpen ( ) : boolean
getNestLevel ( ) : integer
getOpenAction ( ) : Action_LogItem | null
getStartTime ( ) : float | null
newNestedAction ( ) : Action_LogItem
startAction ( mixed $message, array | null $codeLine = null ) : Action_LogItem
startStep ( $text ) : void

보호된 메소드들

메소드 설명
writeToLog ( $text, $codeLine = null ) : void

메소드 상세

__construct() 공개 메소드

public __construct ( DataSift\Storyplayer\Injectables $injectables, integer $nestLevel )
$injectables DataSift\Storyplayer\Injectables
$nestLevel integer

addStep() 공개 메소드

public addStep ( string $text, callback $callable ) : mixed
$text string the message to write
$callable callback the function / lambda to call
리턴 mixed

captureOutput() 공개 메소드

public captureOutput ( $text ) : void
리턴 void

closeAllOpenSubActions() 공개 메소드

public closeAllOpenSubActions ( ) : void
리턴 void

endAction() 공개 메소드

public endAction ( mixed $message = null )
$message mixed

endStep() 공개 메소드

public endStep ( ) : void
리턴 void

getEndTime() 공개 메소드

public getEndTime ( ) : float | null
리턴 float | null

getIsComplete() 공개 메소드

public getIsComplete ( ) : boolean
리턴 boolean TRUE if the action is complete FALSE if the action is currently in progress or has never been started

getIsOpen() 공개 메소드

public getIsOpen ( ) : boolean
리턴 boolean TRUE if the action is currently in progress FALSE if the action is complete or has never been started

getNestLevel() 공개 메소드

public getNestLevel ( ) : integer
리턴 integer

getOpenAction() 공개 메소드

public getOpenAction ( ) : Action_LogItem | null
리턴 Action_LogItem | null

getStartTime() 공개 메소드

public getStartTime ( ) : float | null
리턴 float | null

newNestedAction() 공개 메소드

public newNestedAction ( ) : Action_LogItem
리턴 Action_LogItem

startAction() 공개 메소드

public startAction ( mixed $message, array | null $codeLine = null ) : Action_LogItem
$message mixed the message to log. if it isn't a string, we'll convert it and apply the user's -V preference before logging
$codeLine array | null metadata about the line of code that we're logging about
리턴 Action_LogItem return $this for fluent interfaces

startStep() 공개 메소드

public startStep ( $text ) : void
리턴 void

writeToLog() 보호된 메소드

protected writeToLog ( $text, $codeLine = null ) : void
리턴 void