}
public function incAttempt($t = 1){
$this->update(['attempt' => $this->attempt + $t]);
} is it ok?
the name of first method a little bit confusing me. That kind of checking?
and one more thing, please do not be lazy to set full names for methods and arguments, it is bad idea to call argument like $t. What does it mean?
Обсуждают сегодня