majorType = $majorType; $this->additionalInformation = $additionalInformation; } public function __toString(): string { return chr($this->majorType << 5 | $this->additionalInformation); } public function getMajorType(): int { return $this->majorType; } public function getAdditionalInformation(): int { return $this->additionalInformation; } }