CoreFiles by mySites.guru
MapItem.php29 lines, 476 bytes, from Joomla_5.2.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 5.2.0-alpha2
md5
5894e3017c77a603ee04bddc756cd516
sha1
310250696f85ada81ff344d4520963c583c4b5fc
sha256
c0e279dda00ec2800f1dc92b0fe8519aa16551967ed0f808889b2d233ed0c2cb
<?php

declare(strict_types=1);

namespace CBOR;

class MapItem
{
    public function __construct(
        private CBORObject $key,
        private CBORObject $value
    ) {
    }

    public static function create(CBORObject $key, CBORObject $value): self
    {
        return new self($key, $value);
    }

    public function getKey(): CBORObject
    {
        return $this->key;
    }

    public function getValue(): CBORObject
    {
        return $this->value;
    }
}

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.