$data, 'type' => $type], $attribs); // Params $paramHtml = []; $closingBracket = $this->getClosingBracket(); foreach ($params as $param => $options) { if (is_string($options)) { $options = ['value' => $options]; } $options = array_merge(['name' => $param], $options); $paramHtml[] = 'htmlAttribs($options) . $closingBracket; } // Content if (is_array($content)) { $content = implode(PHP_EOL, $content); } // Object header return 'htmlAttribs($attribs) . '>' . PHP_EOL . implode(PHP_EOL, $paramHtml) . PHP_EOL . ($content ? $content . PHP_EOL : '') . ''; } }