Exemple #1
0
 public function testSetId()
 {
     $request = new TalkRequest();
     $request->setId(1);
     $this->assertEquals(1, $request->getId());
     $request->setId(24);
     $this->assertEquals(24, $request->getId());
 }
Exemple #2
0
 public function talkRequestAdd(Client $client, $rid, $userNickname)
 {
     $this->talkRequestsId++;
     $talkRequest = new TalkRequest();
     $talkRequest->setId($this->talkRequestsId);
     $talkRequest->setRid($rid);
     $talkRequest->setClient($client);
     $talkRequest->setUserNickname($userNickname);
     $this->talkRequests[$this->talkRequestsId] = $talkRequest;
     $this->msgAdd('User "' . $talkRequest->getUserNickname() . '" wants to talk to you.', true, false, true);
     $this->msgAdd('Type "/request accept ' . $talkRequest->getId() . '" to get in touch.', true, true);
 }