You are here

public function InputDefinition::asText in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Input/InputDefinition.php \Symfony\Component\Console\Input\InputDefinition::asText()

Returns a textual representation of the InputDefinition.

Return value

string A string representing the InputDefinition

Deprecated

since version 2.3, to be removed in 3.0.

File

vendor/symfony/console/Input/InputDefinition.php, line 420

Class

InputDefinition
A InputDefinition represents a set of valid command line arguments and options.

Namespace

Symfony\Component\Console\Input

Code

public function asText() {
  @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
  $descriptor = new TextDescriptor();
  $output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, true);
  $descriptor
    ->describe($output, $this, array(
    'raw_output' => true,
  ));
  return $output
    ->fetch();
}