FileOutput
in package
implements
OutputInterface
File output implementation that writes to a file.
Table of Contents
Interfaces
- OutputInterface
- Interface for output destination abstraction.
Properties
- $fileHandle : resource
Methods
- __construct() : mixed
- __destruct() : mixed
- write() : void
- Write content to the output destination.
- writeLine() : void
- Write content to the output destination with a newline.
Properties
$fileHandle
private
resource
$fileHandle
Methods
__construct()
public
__construct(string $filePath) : mixed
Parameters
- $filePath : string
__destruct()
public
__destruct() : mixed
write()
Write content to the output destination.
public
write(string $content) : void
Parameters
- $content : string
writeLine()
Write content to the output destination with a newline.
public
writeLine(string $content) : void
Parameters
- $content : string