/** * @param Buzzer $buzzer * @return string */ public function msgDesinscription(Buzzer $buzzer) { return json_encode(array('idConnection' => $buzzer->getConnectionId(), 'msgType' => 'desInscriptFromSalon', 'error' => 0, 'errorMsg' => '', 'idSalon' => $this->getId(), 'idBuzzer' => $buzzer->getId())); }
/** * @param Buzzer $buzzer */ public function ajout(Buzzer $buzzer) { $this[$buzzer->getId()] = $buzzer; }