CoreFiles by mySites.guru
RgbPaletteEntry.php57 lines, 906 bytes, from Joomla_4.2.3-Stable-Full_Package.zip
Raw History Compare with 4.2.2
md5
85a4dc6e15b17445cd35beb9c49d698c
sha1
db1716caef925dd4614e7b5e28dceb1a494cf2d9
sha256
56c58be7d1b8679956ef249c84e16673a0a46749e9b64a318416839f480f7ec2
<?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 RgbPaletteEntry
{
    /**
     * @var int
     */
    private $r;

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

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

    public function getR(): int
    {
        return $this->r;
    }

    public function getG(): int
    {
        return $this->g;
    }

    public function getB(): int
    {
        return $this->b;
    }

    public static function createFromArray(array $data): self
    {
        $object = new self();
        $object->r = $data['r'] ?? null;
        $object->g = $data['g'] ?? null;
        $object->b = $data['b'] ?? 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.