public function format(string $format): self
    {
        $format = \mb_strtolower($format);

        if (\in_array($format, $this->acceptedFormat, true)) {
            $this->setFormat($format);

            return $this;
        }

        throw new InvalidParameterException('Format is not supported');
    }