<?php
 namespace Engine\Form\Input; class Cloned_Text extends \Engine\Form\Input\Text { protected $class = "clonedText"; public function __construct($label=null, $name=null, $value=null) { parent::__construct($label, $name, $value); $this->settings['minItems'] = 1; $this->settings['operations'] = []; $this->settings['operations']['add'] = true; $this->settings['operations']['remove'] = true; } public function setValue($value) { if(!is_array($value)){ $value = []; } $this->value = $value; return $this; } } 