/**
* Rewinds to the beginning of the file
*
- * @return void
+ * @return $status Status of this operation
*/
function rewind ();
*
* @param $seekPosition Seek position in file
* @param $whence "Seek mode" (see http://de.php.net/fseek)
- * @return void
+ * @return $tatus Status of this operation
*/
function seek ($seekPosition, $whence = SEEK_SET);
* Seeks to given position
*
* @param $seekPosition Seek position in file
- * @return void
+ * @return $status Status of this operation
*/
function seek ($seekPosition);
* Seeks to given position
*
* @param $seekPosition Seek position in file
- * @return void
+ * @return $status Status of this operation
*/
function seek ($seekPosition);
/**
* Rewinds to the beginning of the file
*
- * @return void
+ * @return $status Status of this operation
*/
public function rewind () {
// Rewind the pointer
- assert(rewind($this->getPointer()) === 1);
+ return rewind($this->getPointer());
}
/**
*
* @param $seekPosition Seek position in file
* @param $whence "Seek mode" (see http://de.php.net/fseek)
- * @return void
+ * @return $status Status of this operation
*/
public function seek ($seekPosition, $whence = SEEK_SET) {
// Move the file pointer
- assert(fseek($this->getPointer(), $seekPosition, $whence) === 0);
+ return fseek($this->getPointer(), $seekPosition, $whence);
}
}
/**
* Rewinds to the beginning of the file
*
- * @return void
+ * @return $status Status of this operation
*/
public function rewind () {
// Call pointer instance
- $this->getPointerInstance()->rewind();
+ return $this->getPointerInstance()->rewind();
}
/**
* Seeks to given position
*
* @param $seekPosition Seek position in file
- * @return void
+ * @return $status Status of this operation
*/
public function seek ($seekPosition) {
// Call pointer instance
- $this->getPointerInstance()->seek($seekPosition);
+ return $this->getPointerInstance()->seek($seekPosition);
}
/**
* Seeks to given position
*
* @param $seekPosition Seek position in file
- * @return void
+ * @return $status Status of this operation
*/
public function seek ($seekPosition) {
$this->partialStub('seekPosition=' . $seekPosition);