* Write data to a file pointer
*
* @param $dataStream The data stream we shall write to the file
- * @return mixed The result of fwrite()
+ * @return mixed Number of writes bytes or FALSE on error
* @throws NullPointerException If the file pointer instance
* is not set by setPointer()
* @throws InvalidResourceException If there is being set
throw new InvalidResourceException($this, self::EXCEPTION_INVALID_RESOURCE);
}
- // Read data from the file pointer and return it
+ // Write data to the file pointer and return written bytes
return fwrite($this->getPointer(), $dataStream);
}