public function setFormat($format)
    {
        if (!\in_array($format, ['int32', 'int64', 'int', 'long', 'float', 'double', 'int16', 'int8'], true)) {
            throw new \Exception(\sprintf('Incorrect format given: "%s"', $format));
        }
        $this->format = $format;

        return $this;
    }