public function getState(): int
    {
        $name = $this->getStateName();
        switch ($name) {
            case "STOPPED":
                return self::STATE_STOPPED;
            case "PLAYING":
                return self::STATE_PLAYING;
            case "PAUSED_PLAYBACK":
                return self::STATE_PAUSED;
            case "TRANSITIONING":
                return self::STATE_TRANSITIONING;
        }
        return self::STATE_UNKNOWN;
    }
public function getState(): int
    {
        $name = $this->getStateName();
        switch ($name) {
            case "STOPPED":
                return self::STATE_STOPPED;
            case "PLAYING":
                return self::STATE_PLAYING;
            case "PAUSED_PLAYBACK":
                return self::STATE_PAUSED;
            case "TRANSITIONING":
                return self::STATE_TRANSITIONING;
        }
        return self::STATE_UNKNOWN;
    }
public function getState ( ) : int { $ name = $ this -> getStateName ( ) ; switch ( $ name ) { case "STOPPED" : return self :: STATE_STOPPED ; case "PLAYING" : return self :: STATE_PLAYING ; case "PAUSED_PLAYBACK" : return self :: STATE_PAUSED ; case "TRANSITIONING" : return self :: STATE_TRANSITIONING ; } return self :: STATE_UNKNOWN ; }
Get the current state of the group of speakers.

@return int One of the class STATE_ constants
Get the current state of the group of speakers .