private function setConfig(\Phalcon\Config $config)  {

        if(defined(CURRENT_TASK) === true) {
            $this->taskName = CURRENT_TASK;
        }

        $this->config = $config->cli->{$this->taskName};

        return $this;
    }
private function setConfig(\Phalcon\Config $config)  {

        if(defined(CURRENT_TASK) === true) {
            $this->taskName = CURRENT_TASK;
        }

        $this->config = $config->cli->{$this->taskName};

        return $this;
    }
private function setConfig ( \ Phalcon \ Config $ config ) { if ( defined ( CURRENT_TASK ) === true ) { $ this -> taskName = CURRENT_TASK ; } $ this -> config = $ config -> cli -> { $ this -> taskName } ; return $ this ; }
Setup current task configurations

@param \Phalcon\Config $config
@return SonarTask
Setup current task configurations