/** * @param $code * @param int $amount * @param Coin $buyPrice */ function __construct($code, $amount = 0, Coin $buyPrice = null) { parent::__construct($code, $amount = 0); $this->buyPrice = $buyPrice; }