public function getSpeakersByRoom(string $room): array
    {
        $return = [];

        $speakers = $this->getSpeakers();
        foreach ($speakers as $controller) {
            if ($controller->getRoom() === $room) {
                $return[] = $controller;
            }
        }

        return $return;
    }
public function getSpeakersByRoom(string $room): array
    {
        $return = [];

        $speakers = $this->getSpeakers();
        foreach ($speakers as $controller) {
            if ($controller->getRoom() === $room) {
                $return[] = $controller;
            }
        }

        return $return;
    }
public function getSpeakersByRoom ( string $ room ) : array { $ return = [ ] ; $ speakers = $ this -> getSpeakers ( ) ; foreach ( $ speakers as $ controller ) { if ( $ controller -> getRoom ( ) === $ room ) { $ return [ ] = $ controller ; } } return $ return ; }
Get all the speakers with the specified room name.

@param string $room The name of the room to look for

@return SpeakerInterface[]
Get all the speakers with the specified room name .