for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Phalcon Framework.
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Phalcon\Html\Helper;
use Phalcon\Html\Exception;
* Class AbstractSeries
* @property array $attributes
* @property string $delimiter
* @property string $indent
* @property array $store
abstract class AbstractSeries extends AbstractHelper
{
* @var array
protected $attributes = [];
* @var string
protected $delimiter = PHP_EOL;
protected $indent = " ";
protected $store = [];
* @param string $indent
* @param string $delimiter
* @return AbstractSeries
public function __invoke(
string $indent = null,
string $delimiter = null
): AbstractSeries {
if (null !== $delimiter) {
$this->delimiter = $delimiter;
}
if (null !== $indent) {
$this->indent = $indent;
$this->store = [];
return $this;
* Generates and returns the HTML for the list.
* @return string
public function __toString()
if (empty($this->store)) {
return "";
return implode($this->delimiter, $this->store) . $this->delimiter;
* Returns the tag name.
abstract protected function getTag(): string;