RockLobsterInc\Swv\Rules
MaxItemsRule::toArray
Returns an array that represents the rule properties.
Метод класса: MaxItemsRule{}
Хуков нет.
Возвращает
array. Array of rule properties.
Использование
$MaxItemsRule = new MaxItemsRule(); $MaxItemsRule->toArray(): array;
Код MaxItemsRule::toArray() MaxItemsRule::toArray CF7 6.2.4.1
public function toArray(): array
{
return [
"rule" => self::RULE_NAME,
"field" => $this->field,
"error" => $this->error,
"threshold" => $this->threshold,
];
}