PHP Класс Alex\BehatLauncher\Behat\OutputFile

Показать файл Открыть проект

Открытые методы

Метод Описание
__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