private function initCommand($param)
    {
        if (!preg_match('/^[a-z]+:[a-z]+$/', $param)) {
            $this->options['command'] = $param;

            return;
        }
        
        $part = explode(':', $param);

        $this->options['command'] = $part[0];

        $this->options['action'] = $part[1];
    }
private function initCommand($param)
    {
        if (!preg_match('/^[a-z]+:[a-z]+$/', $param)) {
            $this->options['command'] = $param;

            return;
        }
        
        $part = explode(':', $param);

        $this->options['command'] = $part[0];

        $this->options['action'] = $part[1];
    }
private function initCommand ( $ param ) { if ( ! preg_match ( '/^[a-z]+:[a-z]+$/' , $ param ) ) { $ this -> options [ 'command' ] = $ param ; return ; } $ part = explode ( ':' , $ param ) ; $ this -> options [ 'command' ] = $ part [ 0 ] ; $ this -> options [ 'action' ] = $ part [ 1 ] ; }
Initialize main command

@param string $param

@return void
Initialize main command