SFTPSourceStream implements SourceStream
FinalYes
Interfaces
- SourceStream
Methods
- __construct() : mixed
- close() : void
- content() : string
- isOpen() : bool
- iterate() : Generator<int, string>
- path() : Path
- read() : string
- readLines() : Generator<int, string>
- size() : int|null
Methods
__construct()
public
__construct(Path $path, SFTP $sftp[, Options $options = new Options() ]) : mixed
Parameters
close()
public
close() : void
content()
public
content() : string
Return values
stringisOpen()
public
isOpen() : bool
Return values
booliterate()
public
iterate([int<1, max> $length = 1 ]) : Generator<int, string>
Parameters
- $length : int<1, max> = 1
Return values
Generator<int, string>path()
public
path() : Path
Return values
Pathread()
public
read(int $length, int $offset) : string
Parameters
- $length : int
- $offset : int
Return values
stringreadLines()
public
readLines([string $separator = "\n" ][, null|int<1, max> $length = null ]) : Generator<int, string>
Parameters
- $separator : string = "\n"
- $length : null|int<1, max> = null
Return values
Generator<int, string>size()
public
size() : int|null