public function setVolume(int $volume): SpeakerInterface
    {
        $speakers = $this->getSpeakers();
        foreach ($speakers as $speaker) {
            $speaker->setVolume($volume);
        }

        return $this;
    }
public function setVolume(int $volume): SpeakerInterface
    {
        $speakers = $this->getSpeakers();
        foreach ($speakers as $speaker) {
            $speaker->setVolume($volume);
        }

        return $this;
    }
public function setVolume ( int $ volume ) : SpeakerInterface { $ speakers = $ this -> getSpeakers ( ) ; foreach ( $ speakers as $ speaker ) { $ speaker -> setVolume ( $ volume ) ; } return $ this ; }
Set the volume of all the speakers this controller manages.

@param int $volume The amount to set the volume to between 0 and 100

@return $this
Set the volume of all the speakers this controller manages .