getState() public method

Get the current state of the group of speakers.
public getState ( ) : integer
return integer One of the class STATE_ constants
 /**
  * Get the current playing attributes (stream/position/etc).
  *
  * @param Controller $controller The Controller to grab the state of
  *
  * @return static
  */
 protected function getState(Controller $controller)
 {
     $this->state = $controller->getState();
     $details = $controller->getStateDetails();
     $this->track = $details->queueNumber;
     $this->position = $details->position;
     return $this;
 }