<?php

declare(strict_types=1);

namespace InvertColor\Exceptions;

use UnexpectedValueException;

class InvalidRGBException extends UnexpectedValueException implements ColorException
{
    /**
     * @var array
     */
    private $value;

    /**
     * @param array $value
     */
    public function __construct(string $explanation, array $value)
    {
        parent::__construct('Invalid RGB: ' . $explanation);
        $this->value = $value;
    }

    /**
     * @return array
     */
    public function getValue(): array
    {
        return $this->value;
    }
}

<?php

declare(strict_types=1);

namespace InvertColor\Exceptions;

use UnexpectedValueException;

class InvalidRGBException extends UnexpectedValueException implements ColorException
{
    /**
     * @var array
     */
    private $value;

    /**
     * @param string $explanation
     * @param array $value
     */
    public function __construct(string $explanation, array $value)
    {
        parent::__construct('Invalid RGB: ' . $explanation);
        $this->value = $value;
    }

    /**
     * @return array
     */
    public function getValue(): array
    {
        return $this->value;
    }
}

Add missing parameter in PhpDoc
Add missing parameter in PhpDoc
