PHP 클래스 Alex\BehatLauncher\Behat\OutputFile

파일 보기 프로젝트 열기: alexandresalome/behat-launcher

공개 메소드들

메소드 설명
__construct ( string $path = null, $id = null ) Constructs the output file.
append ( $content ) : OutputFile Appends a content to the file.
delete ( ) : OutputFile Deletes the file.
exists ( ) : boolean Tests if file exists.
getId ( ) : string
getMimetype ( ) : string
getPath ( ) : string
isEmpty ( )
moveTo ( string $path ) : OutputFile Moves the output file to a new location.
setContent ( string $content ) : OutputFile Changes the file content.
setId ( string $id ) : OutputFile
setPath ( string $path ) : OutputFile

비공개 메소드들

메소드 설명
getOrCreatePath ( ) : string Prepares path for writing.

메소드 상세

__construct() 공개 메소드

If no path is given, a temporary file will be created on first write.
public __construct ( string $path = null, $id = null )
$path string an absolute path

append() 공개 메소드

Appends a content to the file.
public append ( $content ) : OutputFile
리턴 OutputFile

delete() 공개 메소드

Deletes the file.
public delete ( ) : OutputFile
리턴 OutputFile

exists() 공개 메소드

Tests if file exists.
public exists ( ) : boolean
리턴 boolean

getId() 공개 메소드

public getId ( ) : string
리턴 string

getMimetype() 공개 메소드

public getMimetype ( ) : string
리턴 string

getPath() 공개 메소드

public getPath ( ) : string
리턴 string an absolute path

isEmpty() 공개 메소드

public isEmpty ( )

moveTo() 공개 메소드

Moves the output file to a new location.
public moveTo ( string $path ) : OutputFile
$path string an absolute path
리턴 OutputFile

setContent() 공개 메소드

Changes the file content.
public setContent ( string $content ) : OutputFile
$content string new content to set
리턴 OutputFile

setId() 공개 메소드

public setId ( string $id ) : OutputFile
$id string
리턴 OutputFile

setPath() 공개 메소드

public setPath ( string $path ) : OutputFile
$path string
리턴 OutputFile