public function getAction($state)
    {
        $type = self::getType('strtolower', false);
        $action = self::$defaultAction[$type];

        if (isset($this->states['action'])) {
            $action = $this->states['action'];
        }

        return ($state === 'uninstalled') ? '' : $action;
    }
public function getAction($state)
    {
        $type = self::getType('strtolower', false);
        $action = self::$defaultAction[$type];

        if (isset($this->states['action'])) {
            $action = $this->states['action'];
        }

        return ($state === 'uninstalled') ? '' : $action;
    }
public function getAction ( $ state ) { $ type = self :: getType ( 'strtolower' , false ) ; $ action = self :: $ defaultAction [ $ type ] ; if ( isset ( $ this -> states [ 'action' ] ) ) { $ action = $ this -> states [ 'action' ] ; } return ( $ state === 'uninstalled' ) ? '' : $ action ; }
Get complement action.

@param string $state → complement state

@uses \Eliasis\Complement\ComplementState->$states
@uses \Eliasis\Complement\Traits\ComplementHandler::getType()

@return string → complement action
Get complement action .