data === null) { return $this->getAdditionalInformation(); } return Utils::binToInt($this->data); } /** * @deprecated The method will be removed on v3.0. Please rely on the WP_DEFENDER_VENDOR\CBOR\Normalizable interface */ public function getNormalizedData(bool $ignoreTags = false): int { return $this->normalize(); } public static function create(int $value): self { switch (true) { case $value < 32: return new self($value, null); case $value < 256: return new self(24, chr($value)); default: throw new InvalidArgumentException('The value is not a valid simple value.'); } } }