RockLobsterInc\Swv
InvalidityException::getField
Retrieves the field name where the validation error occurs.
Метод класса: InvalidityException{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$InvalidityException = new InvalidityException(); $InvalidityException->getField(): string;
Код InvalidityException::getField() InvalidityException::getField CF7 6.2.4.1
public function getField(): string
{
if ($this->cause instanceof self) {
return $this->cause->rule->field ?? "";
}
return $this->rule->field ?? "";
}