Property | Type | Description | |
---|---|---|---|
$current | Current parsed record. | ||
$filePath | Path to storage file. | ||
$handle | File handle. | ||
$isEOF | True when parser is at the end of the file. | ||
$isNew | If the cassette file is new. | ||
$isValidPosition | If the current position is valid. | ||
$position | Number of the current recording. |
Method | Description | |
---|---|---|
__construct ( string $cassettePath, string $cassetteName, string $defaultContent = '[]' ) | Creates a new file store. | |
__destruct ( ) | Closes file handle. | |
current ( ) : array | Returns the current record. | |
isNew ( ) : boolean | Returns true if the file did not exist and had to be created. | |
key ( ) : integer | Returns the current key. |