Moosh\MooshCommand::__construct PHP Method

__construct() public method

public __construct ( $name, $group = NULL )
    public function __construct($name, $group = NULL)
    {
        $this->spec = new \GetOptionKit\OptionCollection();
        $this->addOption('h|help', 'help information');
        $this->name = $name;
        $this->group = $group;
    }

Usage Example

Example #1
0
 public function __construct()
 {
     parent::__construct('course-rebuild', 'cache');
     $this->addOption('a|all', 'rebuild all courses cache');
     $this->addArgument('courseid');
     $this->minArguments = 0;
 }
All Usage Examples Of Moosh\MooshCommand::__construct