Rename toInt to toNumber

This commit is contained in:
Nabeel Shahzad
2018-02-20 15:32:49 -06:00
parent b9e88527dd
commit 8386951511
7 changed files with 33 additions and 6 deletions

View File

@@ -19,6 +19,15 @@ class Volume extends \PhpUnitsOfMeasure\PhysicalQuantity\Volume implements Array
return (string) round($value, 2);
}
/**
* Return value in native unit as integer
* @return array
*/
public function toNumber()
{
return $this->toArray();
}
/**
* For the HTTP Resource call
*/