Contactable\SWV
CompositeRule::to_array
Converts the properties to an array.
Метод класса: CompositeRule{}
Хуков нет.
Возвращает
Массив. Array of properties.
Использование
$CompositeRule = new CompositeRule(); $CompositeRule->to_array();
Код CompositeRule::to_array() CompositeRule::to array CF7 6.1.5
public function to_array() {
$rules_arrays = array_map(
static function ( $rule ) {
return $rule->to_array();
},
$this->rules
);
return array_merge(
parent::to_array(),
array(
'rules' => $rules_arrays,
)
);
}