for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author fabian.hanisch
* @since 2017-07-18
*/
namespace HanischIt\KrakenApi\Model\AccountBalance;
* Class AccountBalanceModel
*
* @package HanischIt\KrakenApi\Model\AccountBalance
class AccountBalanceModel
{
* @var float
private $assetName;
private $balance;
* AccountBalanceModel constructor.
* @param string $assetName
* @param float $balance
public function __construct($assetName, $balance)
$this->assetName = $assetName;
$assetName
double
string
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.
$answer = 42; $correct = false; $correct = (bool) $answer;
$this->balance = $balance;
}
* @return string
public function getAssetName()
return $this->assetName;
* @return float
public function getBalance()
return $this->balance;
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.