File manager - Edit - /home/ferretapmx/public_html/libraries/vendor/spomky-labs/cbor-php/src/OtherObject.php
Back
<?php declare(strict_types=1); namespace CBOR; use CBOR\OtherObject\OtherObjectInterface; abstract class OtherObject extends AbstractCBORObject implements OtherObjectInterface { private const MAJOR_TYPE = self::MAJOR_TYPE_OTHER_TYPE; public function __construct( int $additionalInformation, protected ?string $data ) { parent::__construct(self::MAJOR_TYPE, $additionalInformation); } public function __toString(): string { $result = parent::__toString(); if ($this->data !== null) { $result .= $this->data; } return $result; } public function getContent(): ?string { return $this->data; } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings