public function __construct($data = []) { if (is_array($data) && !empty($data)) { $this->setValues($data); } }