private function stateChanged($states)
    {
        $appID = App::getCurrentID();
        $complementID = self::getCurrentID();

        if (isset($states[$appID][$complementID])) {
            $actualStates = $states[$appID][$complementID];

            if (! count(array_diff_assoc($actualStates, $this->states))) {
                return false;
            }
        }

        return true;
    }
private function stateChanged($states)
    {
        $appID = App::getCurrentID();
        $complementID = self::getCurrentID();

        if (isset($states[$appID][$complementID])) {
            $actualStates = $states[$appID][$complementID];

            if (! count(array_diff_assoc($actualStates, $this->states))) {
                return false;
            }
        }

        return true;
    }
private function stateChanged ( $ states ) { $ appID = App :: getCurrentID ( ) ; $ complementID = self :: getCurrentID ( ) ; if ( isset ( $ states [ $ appID ] [ $ complementID ] ) ) { $ actualStates = $ states [ $ appID ] [ $ complementID ] ; if ( ! count ( array_diff_assoc ( $ actualStates , $ this -> states ) ) ) { return false ; } } return true ; }
Check if complement state has changed.

@param string $states → complement states

@uses \Eliasis\Framework\App::getCurrentID()
@uses \Eliasis\Complement\Complement::getCurrentID()

@return bool
Check if complement state has changed .