Debian Codegraph @

lib/3rdParty/composer/spomky-labs/cbor-php/src/OtherObject/NullObject.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace CBOR\OtherObject;
6
7 use CBOR\Normalizable;
8 use CBOR\OtherObject as Base;
9
10 final class NullObject extends Base implements Normalizable
11 {
12 public function __construct()
13 {
14 parent::__construct(self::OBJECT_NULL, null);
15 }
16
17 public static function create(): self
18 {
19 return new self();
20 }
21
22 public static function supportedAdditionalInformation(): array
23 {
24 return [self::OBJECT_NULL];
25 }
26
27 public static function createFromLoadedData(int $additionalInformation, ?string $data): Base
28 {
29 return new self();
30 }
31
32 public function normalize(): ?string
33 {
34 return null;
35 }
36 }