CoreFiles by mySites.guru
Version.php46 lines, 778 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
c9129964e4d98e7269c61c25d82742bf
sha1
74df4bae05a402f67c1d242f79de5e7f6bdf5bca
sha256
ad9743ea98d6778e6677e3a621808a8754d60f8f257efee711de3b119542f439
<?php

declare(strict_types=1);

/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2014-2019 Spomky-Labs
 *
 * This software may be modified and distributed under the terms
 * of the MIT license.  See the LICENSE file for details.
 */

namespace Webauthn\MetadataService;

class Version
{
    /**
     * @var int
     */
    private $major;

    /**
     * @var int
     */
    private $minor;

    public function getMajor(): int
    {
        return $this->major;
    }

    public function getMinor(): int
    {
        return $this->minor;
    }

    public static function createFromArray(array $data): self
    {
        $object = new self();
        $object->major = $data['major'] ?? null;
        $object->minor = $data['minor'] ?? null;

        return $object;
    }
}

The same content is in 131 releases, Joomla 4.0.0-beta to 4.4.14. See them all, or every version of this file.