Наследование: implements Psr\Log\LoggerAwareInterface
Пример #1
0
 /**
  * Get the speaker of the alarm.
  *
  * @return Speaker
  */
 public function getSpeaker()
 {
     foreach ($this->network->getSpeakers() as $speaker) {
         if ($speaker->getUuid() === $this->getRoom()) {
             return $speaker;
         }
     }
     throw new \RuntimeException("Unable to find a speaker for this alarm");
 }
Пример #2
0
 /**
  * Removes the specified speaker from the group of this Controller.
  *
  * @param Speaker $speaker The speaker to remove from the group
  *
  * @return static
  */
 public function removeSpeaker(Speaker $speaker)
 {
     $speaker->soap("AVTransport", "BecomeCoordinatorOfStandaloneGroup");
     $this->network->clearTopology();
     return $this;
 }