setValue($value); if ($fields && !is_array($fields)) { $fields = [$fields]; } parent::__construct($fields); $this->setTitle($title ?: $value); } function getTitle() { return $this->title; } function setTitle($title) { $this->title = $title; return $this; } function getValue() { return $this->value; } function setValue($Value, $data = null) { $this->value = $Value; return $this; } }