public function getState()
    {
        if (isset($this->states['state'])) {
            return $this->states['state'];
        } elseif (isset($this->complement['state'])) {
            return $this->complement['state'];
        }

        $type = self::getType();

        return self::$defaultStates[$type];
    }
public function getState()
    {
        if (isset($this->states['state'])) {
            return $this->states['state'];
        } elseif (isset($this->complement['state'])) {
            return $this->complement['state'];
        }

        $type = self::getType();

        return self::$defaultStates[$type];
    }
public function getState ( ) { if ( isset ( $ this -> states [ 'state' ] ) ) { return $ this -> states [ 'state' ] ; } elseif ( isset ( $ this -> complement [ 'state' ] ) ) { return $ this -> complement [ 'state' ] ; } $ type = self :: getType ( ) ; return self :: $ defaultStates [ $ type ] ; }
Get complement state.

@uses \Eliasis\Framework\App::complements()
@uses \Eliasis\Complement\Traits\ComplementHandler::getType()

@return string → complement state
Get complement state .