프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
메소드 | 설명 | |
---|---|---|
__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. |