public validateDuration ( $attribute ) : boolean | ||
$attribute | ||
return | boolean |
public function validateDuration($attribute)
{
if (!$this->getProcedureCount()) {
return true;
}
if (!$this->total_duration) {
$this->addError($attribute, 'Total Duration cannot be blank');
}
}