Components_Config::getComponent PHP Method

getComponent() public method

Return the selected component.
public getComponent ( ) : Components_Component
return Components_Component The selected component.
    public function getComponent();

Usage Example

Beispiel #1
0
 public function run()
 {
     $sequence = array();
     if ($this->_doTask('unit')) {
         $sequence[] = 'unit';
     }
     if ($this->_doTask('md')) {
         $sequence[] = 'md';
     }
     if ($this->_doTask('cs')) {
         $sequence[] = 'cs';
     }
     if ($this->_doTask('cpd')) {
         $sequence[] = 'cpd';
     }
     if ($this->_doTask('lint')) {
         $sequence[] = 'lint';
     }
     if ($this->_doTask('loc')) {
         $sequence[] = 'loc';
     }
     if ($this->_doTask('dcd')) {
         $sequence[] = 'dcd';
     }
     if (!empty($sequence)) {
         $this->_qc->run($sequence, $this->_config->getComponent(), $this->_config->getOptions());
     } else {
         $this->_output->warn('Huh?! No tasks selected... All done!');
     }
 }
All Usage Examples Of Components_Config::getComponent