Move import to factory #1222

This commit is contained in:
James Cole
2018-03-24 14:05:29 +01:00
parent 796ab4bf2c
commit 3c9b7c07af
8 changed files with 180 additions and 225 deletions

View File

@@ -290,10 +290,13 @@ class Steam
/**
* @param string $amount
*
* @return string
* @return string|null
*/
public function opposite(string $amount): string
public function opposite(string $amount = null): ?string
{
if (is_null($amount)) {
return null;
}
$amount = bcmul($amount, '-1');
return $amount;