0

Long method part 13 for php missing $this

Leon 3 月 前 已更新 3 月 前 1
if (isSummer($date)) {
  $charge = summerCharge($quantity);
} else {
  $charge = winterCharge($quantity);
}

Long method part 13 for php  

if ($this->isSummer($date)) {
  $charge = $this->summerCharge($quantity);
} else {
  $charge = winterCharge($quantity);
}

Oh, I missed 

$this->winterCharge($quantity);

UserEcho 的客户支持