CoreFiles by mySites.guru
Suggestion.php41 lines, 827 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
8795ff3f26001dc61a245289d7c55ae9
sha1
ac3ca5bc10a6c22ebc983a263a5bf4579c16b247
sha256
05b133fc0f69ab39b59b9fb4fcec2ae8881005bf34ece46803fddeacd49eb00d
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Console\Completion;

/**
 * Represents a single suggested value.
 *
 * @author Wouter de Jong <[email protected]>
 */
class Suggestion implements \Stringable
{
    public function __construct(
        private readonly string $value,
        private readonly string $description = ''
    ) {
    }

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

    public function getDescription(): string
    {
        return $this->description;
    }

    public function __toString(): string
    {
        return $this->getValue();
    }
}

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