/** * 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()]; }
/** * 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); }