Webmozart\Console\Api\Config\Config::setHelperSet PHP Method

setHelperSet() public method

Sets the used helper set.
See also: getHelperSet()
public setHelperSet ( Symfony\Component\Console\Helper\HelperSet $helperSet ) : ApplicationConfig | CommandConfig | SubCommandConfig | OptionCommandConfig
$helperSet Symfony\Component\Console\Helper\HelperSet The helper set.
return ApplicationConfig | CommandConfig | SubCommandConfig | OptionCommandConfig The current instance.
    public function setHelperSet(HelperSet $helperSet)
    {
        $this->helperSet = $helperSet;
        return $this;
    }

Usage Example

Example #1
0
 public function testSetHelperSet()
 {
     $helperSet = new HelperSet();
     $this->config->setHelperSet($helperSet);
     $this->assertSame($helperSet, $this->config->getHelperSet());
 }