comparison vendor/symfony/console/Helper/HelperSet.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 129ea1e6d783
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
26 */ 26 */
27 private $helpers = array(); 27 private $helpers = array();
28 private $command; 28 private $command;
29 29
30 /** 30 /**
31 * Constructor.
32 *
33 * @param Helper[] $helpers An array of helper 31 * @param Helper[] $helpers An array of helper
34 */ 32 */
35 public function __construct(array $helpers = array()) 33 public function __construct(array $helpers = array())
36 { 34 {
37 foreach ($helpers as $alias => $helper) { 35 foreach ($helpers as $alias => $helper) {
83 } 81 }
84 82
85 return $this->helpers[$name]; 83 return $this->helpers[$name];
86 } 84 }
87 85
88 /**
89 * Sets the command associated with this helper set.
90 *
91 * @param Command $command A Command instance
92 */
93 public function setCommand(Command $command = null) 86 public function setCommand(Command $command = null)
94 { 87 {
95 $this->command = $command; 88 $this->command = $command;
96 } 89 }
97 90