Appends text or HTML to a collection of items.

@param  string

@return Collection
518829
public function append($html)
    {
        $this->each(function ($item) use ($html) {
            $item->title .= $html;
        });

        return $this;
    }
289847
public function addListItem($text, $depth = 0, $styleFont = null, $styleList = null, $styleParagraph = null) {
		$listItem = new PHPWord_Section_ListItem($text, $depth, $styleFont, $styleList, $styleParagraph);
		$this->_elementCollection[] = $listItem;
		return $listItem;
	}
1359417
public function append(string $string): self
    {
        return new self((string) $this.$string, $this->encoding);
    }
913261
public function append($list = null)
    {
        if (is_string($list)) {
            $this->_list[] = $list;
        }

        if (is_array($list)) {
            $this->_list = array_merge($this->_list, $list);
        }

        return $this;
    }
939945
def append(self, item):
        """"""
        if isinstance(item, str):
            item = SingleStyledText(item)
        item.parent = self
        list.append(self, item)
938947
public function append($value): BaseCollection
    {
        $this->validate($value);

        parent::append($value);

        return $this;
    }
621980
public function parse(string $html) : TokenCollection
    {
        self::$allHtml = $html;
        $tokens = new TokenCollection();
        $remainingHtml = trim($html);
        while (mb_strlen($remainingHtml) > 0) {
            $token = TokenFactory::buildFromHtml(
                $remainingHtml,
                null,
                $this->throwOnError
            );
            if (!$token instanceof Token) {
                // Error has occurred, so we stop.
                break;
            }

            $remainingHtml = $token->parse($remainingHtml);
            $tokens[] = $token;
        }

        return $tokens;
    }
423184
public function append($value)
	{
		$value = $this->normalizeValue($value);

		$this->items[] = $value;

		return $value;
	}
784166
public function addListItem($text, $depth = 0, $styleText = null, $styleList = null) {
		$listItem = new PHPWord_Section_ListItem($text, $depth, $styleText, $styleList);
		$this->_elementCollection[] = $listItem;
		return $listItem;
	}
846160
public function createList($list = null)
    {
        $node = new Item();

        if ($list instanceof Item) {
            $node = $list;
        } elseif ($list instanceof Element) {
            $node->entity->setEntityName($list->entity->getEntityName());
            $node->childNodes->push($list);
        } else {
            if (is_numeric($list)) {
                $node->entity->setEntityName('list-' . $list);
            }

            if (isset($list)) {
                $node->entity->setEntityName($list);
                $node->textContent->push($list);
            }
        }

        $this->pushChildNode($node);

        return $this->childNodes->last();
    }
1216228
public function add($items)
    {
        if (is_array($items)) {
            $this->collection[] = new RecordField($items);
        } elseif (is_object($items) && $items instanceof RecordField) {
            $this->collection[] = $items;
        }

        return $this;
    }
332447
public function addText(string $text)
    {
        $contentConfig = [
            'text' => $text
        ];

        $contentItem = new ContentItem($contentConfig);

        $this->contentItems->addContentItemToCollection($contentItem);
    }
120320
private function addItem()
    {
        $args = func_get_args();
        if (in_array($args[0], self::$appendableTransformations)) {
            $i = $this->findLastTransformation($args[0]);
            if ($i !== false) {
                $this->items[$i]['rendered'] .= ','.implode(':', array_slice($args, 1));

                return $this;
            }
        }
        if ($args[0] != '/' && $this->itemCount && in_array($this->items[$this->itemCount - 1]['type'], self::$forcedLastTransformations)) {
            $lastTransformation = array_pop($this->items);
        }
        $this->items[] = [
            'type' => $args[0],
            'rendered' => implode(':', $args),
        ];
        ++$this->itemCount;
        if (isset($lastTransformation)) {
            $this->items[] = $lastTransformation;
        }

        return $this;
    }
1112043
public function prependHtml($html)
    {
        $this->each(function ($item) use ($html) {
            $item->title = $html . $item->title;
        });

        return $this;
    }
132487
public function paragraph(string $text = null): Paragraph
    {
        $paragraph = Paragraph::factory();
        if ($text !== null) {
            $paragraph->text($text);
        }

        /** @var ContainerElement $this */
        return $this->addElement($paragraph);
    }
1321515
public function append($items)
    {
        if ($items instanceof static) {
            $items = $items->toArray();
        }
        $this->items = array_merge($this->items, (array)$items);

        return $this;
    }
1099463
public function evaluate()
    {
        $items = parent::evaluate();
        $collection = $this->fusionValue('appendTo');

        return array_merge($collection, $items);
    }