Ejemplo n.º 1
0
 /**
  * Get the client pseudonym for a room
  *
  * @param      Client  $client  The client to get the pseudonym from
  *
  * @return     string  The client pseudonym for the room
  */
 public function getClientPseudonym(Client $client) : string
 {
     return $this->pseudonyms[$client->getId()];
 }
Ejemplo n.º 2
0
 /**
  * Determine if a client exists in the collection
  *
  * @param      Client  $client  The client to test
  *
  * @return     bool    True if the client exists in the collection, false otherwise
  */
 public function isClientExist(Client $client) : bool
 {
     return array_key_exists($client->getId(), $this->indexId);
 }