Beispiel #1
0
 public function HandleData()
 {
     $dataRep = new DataResponse();
     if ($this->uriCount === 1) {
         $data = $dataRep->getUserName($this->uris[0]);
         return $data;
     } elseif ($this->uriCount === 2) {
         $data = $dataRep->getUserProfile($this->uris[0], $this->uris[1]);
         return $data;
     }
 }