src/Common/Formatter/FormatterCollection.php
public function format($text)
    {
        /** @var FormatterInterface $formatter */
        foreach ($this->toArray() as $formatter) {
            $text = $formatter->format($text);
        }

        return $text;
    }
public function format($text)
    {
        /** @var FormatterInterface $formatter */
        foreach ($this->toArray() as $formatter) {
            $text = $formatter->format($text);
        }

        return $text;
    }
@param string $text

@return string