Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Suggestion.php

class Suggestion

Represents a single suggested value.

@author Wouter de Jong <wouter@wouterj.nl>

Hierarchy

  • class \Symfony\Component\Console\Completion\Suggestion implements \Symfony\Component\Console\Completion\Stringable

Expanded class hierarchy of Suggestion

7 files declare their use of Suggestion
Application.php in vendor/symfony/console/Application.php
Command.php in vendor/symfony/console/Command/Command.php
InputArgument.php in vendor/composer/composer/src/Composer/Console/Input/InputArgument.php
InputArgument.php in vendor/symfony/console/Input/InputArgument.php
InputOption.php in vendor/composer/composer/src/Composer/Console/Input/InputOption.php

... See full list

File

vendor/symfony/console/Completion/Suggestion.php, line 19

Namespace

Symfony\Component\Console\Completion
View source
class Suggestion implements \Stringable {
    public function __construct(string $value, string $description = '') {
    }
    public function getValue() : string {
        return $this->value;
    }
    public function getDescription() : string {
        return $this->description;
    }
    public function __toString() : string {
        return $this->getValue();
    }

}

Members

Title Sort descending Modifiers Object type Summary
Suggestion::getDescription public function
Suggestion::getValue public function
Suggestion::__construct public function
Suggestion::__toString public function

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal