Skip to content
Snippets Groups Projects
Commit 2929d19c authored by Andreas Fischer's avatar Andreas Fischer
Browse files

Document exceptions thrown by \OC\LargeFileHelper.

parent ea246d05
No related branches found
No related tags found
No related merge requests found
......@@ -25,8 +25,10 @@ class LargeFileHelper {
const POW_2_53_MINUS_1 = '9007199254740991';
/**
* @brief Constructor. Checks whether our assumptions hold on the platform
* we are on, throws an exception if they do not hold.
* @brief Checks whether our assumptions hold on the PHP platform we are on.
*
* @throws \RunTimeException if our assumptions do not hold on the current
* PHP platform.
*/
public function __construct() {
$pow_2_53 = floatval(self::POW_2_53_MINUS_1) + 1.0;
......@@ -43,6 +45,9 @@ class LargeFileHelper {
*
* @param int|float|string $number Number containing unsigned integer data
*
* @throws \UnexpectedValueException if $number is not a float, not an int
* and not a base-10 string.
*
* @return string Unsigned integer base-10 string
*/
public function formatUnsignedInteger($number) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment