public function getStates()
    {
        $states = [];

        if (self::STATE_OFFLINE === $this->_state) {
            $states[] = self::STATE_OFFLINE;
        } elseif (self::STATE_HIDDEN === $this->_state) {
            $states[] = self::STATE_OFFLINE;
            $states[] = self::STATE_HIDDEN;
        } else {
            foreach (self::$STATES as $value) {
                if (0 !== ($this->_state & $value)) {
                    $states[] = $value;
                }
            }
        }

        return $states;
    }
public function getStates()
    {
        $states = [];

        if (self::STATE_OFFLINE === $this->_state) {
            $states[] = self::STATE_OFFLINE;
        } elseif (self::STATE_HIDDEN === $this->_state) {
            $states[] = self::STATE_OFFLINE;
            $states[] = self::STATE_HIDDEN;
        } else {
            foreach (self::$STATES as $value) {
                if (0 !== ($this->_state & $value)) {
                    $states[] = $value;
                }
            }
        }

        return $states;
    }
public function getStates ( ) { $ states = [ ] ; if ( self :: STATE_OFFLINE === $ this -> _state ) { $ states [ ] = self :: STATE_OFFLINE ; } elseif ( self :: STATE_HIDDEN === $ this -> _state ) { $ states [ ] = self :: STATE_OFFLINE ; $ states [ ] = self :: STATE_HIDDEN ; } else { foreach ( self :: $ STATES as $ value ) { if ( 0 !== ( $ this -> _state & $ value ) ) { $ states [ ] = $ value ; } } } return $ states ; }
Returns available states.

@return integer[]

@Serializer\VirtualProperty
@Serializer\SerializedName("states")
Returns available states .