Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/console/Input/InputOption.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | c2387f117808 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
31 private $mode; | 31 private $mode; |
32 private $default; | 32 private $default; |
33 private $description; | 33 private $description; |
34 | 34 |
35 /** | 35 /** |
36 * Constructor. | |
37 * | |
38 * @param string $name The option name | 36 * @param string $name The option name |
39 * @param string|array $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts | 37 * @param string|array $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts |
40 * @param int $mode The option mode: One of the VALUE_* constants | 38 * @param int $mode The option mode: One of the VALUE_* constants |
41 * @param string $description A description text | 39 * @param string $description A description text |
42 * @param mixed $default The default value (must be null for self::VALUE_NONE) | 40 * @param mixed $default The default value (must be null for self::VALUE_NONE) |
193 } | 191 } |
194 | 192 |
195 /** | 193 /** |
196 * Checks whether the given option equals this one. | 194 * Checks whether the given option equals this one. |
197 * | 195 * |
198 * @param InputOption $option option to compare | |
199 * | |
200 * @return bool | 196 * @return bool |
201 */ | 197 */ |
202 public function equals(InputOption $option) | 198 public function equals(InputOption $option) |
203 { | 199 { |
204 return $option->getName() === $this->getName() | 200 return $option->getName() === $this->getName() |