CoreFiles by mySites.guru
NullObject.php36 lines, 690 bytes, from Joomla_5.4.11-Stable-Full_Package.zip
Raw History Compare with 5.4.10
md5
89a990a86160376c24575ddb0c5881c4
sha1
67f0a5d1f7718446549bb47ed9e66fb0d48f9079
sha256
0a77b04cfefbf5d52a55c88e0f13c435e92b891a53af5d9ca0de2c2c9d39c251
<?php

declare(strict_types=1);

namespace CBOR\OtherObject;

use CBOR\Normalizable;
use CBOR\OtherObject as Base;

final class NullObject extends Base implements Normalizable
{
    public function __construct()
    {
        parent::__construct(self::OBJECT_NULL, null);
    }

    public static function create(): self
    {
        return new self();
    }

    public static function supportedAdditionalInformation(): array
    {
        return [self::OBJECT_NULL];
    }

    public static function createFromLoadedData(int $additionalInformation, ?string $data): Base
    {
        return new self();
    }

    public function normalize(): ?string
    {
        return null;
    }
}

The same content is in 158 releases, Joomla 5.0.0-alpha1 to 6.3.0-alpha1. See them all, or every version of this file.