Debian Codegraph @

lib/3rdParty/composer/spomky-labs/cbor-php/src/OtherObject/TrueObject.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 TrueObject extends Base implements Normalizable
11 {
12 public function __construct()
13 {
14 parent::__construct(self::OBJECT_TRUE, 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_TRUE];
25 }
26
27 public static function createFromLoadedData(int $additionalInformation, ?string $data): Base
28 {
29 return new self();
30 }
31
32 public function normalize(): bool
33 {
34 return true;
35 }
36 }