Documentation

FileInfo extends SplFileInfo
in package
implements FileWriterInterface, StringWriterInterface

FinalYes

Table of Contents

Interfaces

FileWriterInterface
Writer that materializes object state as a file.
StringWriterInterface

Methods

readContents()  : string
toFile()  : SplFileInfo
Converts the object's data to a file on disk.
toString()  : string
Converts the object's data to a string.

Methods

readContents()

public static readContents(SplFileInfo|string $path) : string
Parameters
$path : SplFileInfo|string
Tags
throws
InvalidArgumentException
RuntimeException
Return values
string

toFile()

Converts the object's data to a file on disk.

public toFile() : SplFileInfo
Return values
SplFileInfo

toString()

Converts the object's data to a string.

public toString() : string
Tags
throws
InvalidArgumentException
RuntimeException
Return values
string
On this page

Search results